Debian Codegraph @

po/ru/man3/system.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, fuzzy, no-wrap
32 #| msgid "B<system>()"
33 msgid "system"
34 msgstr "B<system>()"
35
36 #. type: TH
37 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
38 #: opensuse-tumbleweed
39 #, no-wrap
40 msgid "2026-02-08"
41 msgstr "8 февраля 2026 г."
42
43 #. type: TH
44 #: archlinux debian-unstable
45 #, fuzzy, no-wrap
46 #| msgid "Linux man-pages 6.17"
47 msgid "Linux man-pages 6.18"
48 msgstr "Справочные страницы Linux 6.17"
49
50 #. type: SH
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, no-wrap
54 msgid "NAME"
55 msgstr "НАИМЕНОВАНИЕ"
56
57 #. type: Plain text
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 msgid "system - execute a shell command"
61 msgstr "system - выполняет команду оболочки (shell)"
62
63 #. type: SH
64 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
65 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
66 #, no-wrap
67 msgid "LIBRARY"
68 msgstr "БИБЛИОТЕКА"
69
70 #. type: Plain text
71 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
72 #: opensuse-leap-16-1 opensuse-tumbleweed
73 msgid "Standard C library (I<libc>,\\ I<-lc>)"
74 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
75
76 #. type: SH
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "SYNOPSIS"
81 msgstr "СИНТАКСИС"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
88 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<int system(const char *>I<command>B<);>\n"
95 msgstr "B<int system(const char *>I<command>B<);>\n"
96
97 #. type: SH
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "DESCRIPTION"
102 msgstr "ОПИСАНИЕ"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, fuzzy
108 #| msgid ""
109 #| "The B<system>() library function uses B<fork>(2) to create a child "
110 #| "process that executes the shell command specified in I<command> using "
111 #| "B<execl>(3) as follows:"
112 msgid ""
113 "The B<system>() library function behaves as if it used B<fork>(2) to "
114 "create a child process that executed the shell command specified in "
115 "I<command> using B<execl>(3) as follows:"
116 msgstr ""
117 "В библиотечной функции B<system>() используется B<fork>(2) для создания "
118 "процесса-потомка, в котором посредством B<execl>(3) запускается команда "
119 "оболочки, указанная в I<command>:"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "execl(\"/bin/sh\", \"sh\", \"-c\", command, (char *) NULL);\n"
126 msgstr "execl(\"/bin/sh\", \"sh\", \"-c\", command, (char *) NULL);\n"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid "B<system>() returns after the command has been completed."
132 msgstr ""
133 "Функция B<system>() возвращает результат после завершения работы команды."
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "During execution of the command, B<SIGCHLD> will be blocked, and B<SIGINT> "
140 "and B<SIGQUIT> will be ignored, in the process that calls B<system>(). "
141 "(These signals will be handled according to their defaults inside the child "
142 "process that executes I<command>.)"
143 msgstr ""
144 "На время выполнения команды B<SIGCHLD> блокируется, а B<SIGINT> и B<SIGQUIT> "
145 "игнорируются в процессе, который вызвал B<system>() (эти сигналы будут "
146 "обработаны их действиями по умолчанию внутри процесса-потомка, который "
147 "выполняет I<command>)."
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "If I<command> is NULL, then B<system>() returns a status indicating whether "
154 "a shell is available on the system."
155 msgstr ""
156 "Если значение I<command> равно NULL, то B<system>() возвращает состояние, "
157 "показывающее доступна ли оболочка в системе."
158
159 #. type: SH
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "RETURN VALUE"
164 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid "The return value of B<system>() is one of the following:"
170 msgstr "Возвращаемым значением B<system>() может быть одно из:"
171
172 #. type: IP
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "\\[bu]"
177 msgstr "\\[bu]"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "If I<command> is NULL, then a nonzero value if a shell is available, or 0 if "
184 "no shell is available."
185 msgstr ""
186 "Если значение I<command> равно NULL, то возвращается ненулевое значение, "
187 "если оболочка присутствует в системе, или 0, если оболочка недоступна."
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "If a child process could not be created, or its status could not be "
194 "retrieved, the return value is -1 and I<errno> is set to indicate the error."
195 msgstr ""
196 "Если процесс-потомок не может быть создан или его состояние невозможно "
197 "вернуть, то возвращается значение -1, а I<errno> присваивается код ошибки."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "If a shell could not be executed in the child process, then the return value "
204 "is as though the child shell terminated by calling B<_exit>(2) with the "
205 "status 127."
206 msgstr ""
207 "Если оболочка не может выполниться в процессе-потомке, то возвращается "
208 "значение будет таким же как если бы оболочка-потомок завершилась вызовом "
209 "B<_exit>(2) с состоянием 127."
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "If all system calls succeed, then the return value is the termination status "
216 "of the child shell used to execute I<command>. (The termination status of a "
217 "shell is the termination status of the last command it executes.)"
218 msgstr ""
219 "Если все системные вызовы выполнены без ошибок, то возвращается значение "
220 "состояния завершения процесса-потомка, использовавшегося для выполнения "
221 "I<command> (состояние завершения оболочки — это состояние завершения "
222 "последней выполнявшейся команды)."
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "In the last two cases, the return value is a \"wait status\" that can be "
229 "examined using the macros described in B<waitpid>(2). (i.e., "
230 "B<WIFEXITED>(), B<WEXITSTATUS>(), and so on)."
231 msgstr ""
232 "В последних двух случаях возвращаемое значение — это «состояние ожидания», "
233 "которое можно определить с помощью макроса описанного в B<waitpid>(2) (т. "
234 "е., B<WIFEXITED>(), B<WEXITSTATUS>() и т. п.)."
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid "B<system>() does not affect the wait status of any other children."
240 msgstr "Функция B<system>() не отражает состояние ожидание других потомков."
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "ERRORS"
247 msgstr "ОШИБКИ"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid "B<system>() can fail with any of the same errors as B<fork>(2)."
253 msgstr ""
254 "Функция B<system>() может завершиться с теми же ошибками что и B<fork>(2)."
255
256 #. type: SH
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "ATTRIBUTES"
261 msgstr "АТРИБУТЫ"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "For an explanation of the terms used in this section, see B<attributes>(7)."
268 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
269
270 #. type: tbl table
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "Interface"
275 msgstr "Интерфейс"
276
277 #. type: tbl table
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "Attribute"
282 msgstr "Атрибут"
283
284 #. type: tbl table
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "Value"
289 msgstr "Значение"
290
291 #. type: tbl table
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid ".na\n"
296 msgstr ".na\n"
297
298 #. type: tbl table
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid ".nh\n"
303 msgstr ".nh\n"
304
305 #. type: tbl table
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<system>()"
310 msgstr "B<system>()"
311
312 #. type: tbl table
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "Thread safety"
317 msgstr "Безвредность в нитях"
318
319 #. type: tbl table
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "MT-Safe"
324 msgstr "MT-Safe"
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "STANDARDS"
331 msgstr "СТАНДАРТЫ"
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid "C11, POSIX.1-2008."
337 msgstr "C11, POSIX.1-2008."
338
339 #. type: SH
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "HISTORY"
344 msgstr "ИСТОРИЯ"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "POSIX.1-2001, C89."
350 msgstr "POSIX.1-2001, C89."
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "NOTES"
357 msgstr "ПРИМЕЧАНИЯ"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "B<system>() provides simplicity and convenience: it handles all of the "
364 "details of calling B<fork>(2), B<execl>(3), and B<waitpid>(2), as well as "
365 "the necessary manipulations of signals; in addition, the shell performs the "
366 "usual substitutions and I/O redirections for I<command>. The main cost of "
367 "B<system>() is inefficiency: additional system calls are required to create "
368 "the process that runs the shell and to execute the shell."
369 msgstr ""
370 "Функция B<system>() проста и удобна: она позаботится обо всём для вызовов "
371 "B<fork>(2), B<execl>(3) и B<waitpid>(2), а также необходимых действиях с "
372 "сигналами; также оболочка выполнит обычные подстановки и перенаправления "
373 "ввода-вывода I<command>. Но B<system>() не эффективна: для создания процесса "
374 "требуются дополнительные системные вызовы, которые запускают оболочку и "
375 "выполняют команду."
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "If the B<_XOPEN_SOURCE> feature test macro is defined (before including "
382 "I<any> header files), then the macros described in B<waitpid>(2) "
383 "(B<WEXITSTATUS>(), etc.) are made available when including "
384 "I<E<lt>stdlib.hE<gt>>."
385 msgstr ""
386 "Если определён макрос тестирования свойств B<_XOPEN_SOURCE> (до включения "
387 "I<всех> заголовочных файлов), то при включении I<E<lt>stdlib.hE<gt>> "
388 "становятся доступны макросы, описанные в B<waitpid>(2) (B<WEXITSTATUS>() и "
389 "т. п.)."
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "As mentioned, B<system>() ignores B<SIGINT> and B<SIGQUIT>. This may make "
396 "programs that call it from a loop uninterruptible, unless they take care "
397 "themselves to check the exit status of the child. For example:"
398 msgstr ""
399 "Как уже упоминалось, функция B<system>() игнорирует B<SIGINT> и B<SIGQUIT>. "
400 "Это может привести к тому, что программы вызывающие её из цикла станут не "
401 "прерываемыми, пока сами не проверят условия выхода для своих дочерних "
402 "процессов. Пример:"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, fuzzy, no-wrap
408 #| msgid ""
409 #| " if (WIFSIGNALED(ret) &&\n"
410 #| " (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))\n"
411 #| " break;\n"
412 #| "}\n"
413 msgid ""
414 "while (something) {\n"
415 " int ret = system(\"foo\");\n"
416 "\\&\n"
417 " if (WIFSIGNALED(ret) &&\n"
418 " (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))\n"
419 " break;\n"
420 "}\n"
421 msgstr ""
422 " if (WIFSIGNALED(ret) &&\n"
423 " (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))\n"
424 " break;\n"
425 "}\n"
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid ""
431 "According to POSIX.1, it is unspecified whether handlers registered using "
432 "B<pthread_atfork>(3) are called during the execution of B<system>(). In "
433 "the glibc implementation, such handlers are not called."
434 msgstr ""
435 "В POSIX.1 не определено, вызываются ли обработчики, зарегистрированные "
436 "B<pthread_atfork>(3), при выполнении B<system>(). В реализации glibc такие "
437 "обработчики не вызываются."
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, fuzzy
443 #| msgid ""
444 #| "In versions of glibc before 2.1.3, the check for the availability of I</"
445 #| "bin/sh> was not actually performed if I<command> was NULL; instead it was "
446 #| "always assumed to be available, and B<system>() always returned 1 in "
447 #| "this case. Since glibc 2.1.3, this check is performed because, even "
448 #| "though POSIX.1-2001 requires a conforming implementation to provide a "
449 #| "shell, that shell may not be available or executable if the calling "
450 #| "program has previously called B<chroot>(2) (which is not specified by "
451 #| "POSIX.1-2001)."
452 msgid ""
453 "Before glibc 2.1.3, the check for the availability of I</bin/sh> was not "
454 "actually performed if I<command> was NULL; instead it was always assumed to "
455 "be available, and B<system>() always returned 1 in this case. Since glibc "
456 "2.1.3, this check is performed because, even though POSIX.1-2001 requires a "
457 "conforming implementation to provide a shell, that shell may not be "
458 "available or executable if the calling program has previously called "
459 "B<chroot>(2) (which is not specified by POSIX.1-2001)."
460 msgstr ""
461 "В версиях glibc до 2.1.3 проверка доступности I</bin/sh> в действительности "
462 "не выполнялась, если значение I<command> равно NULL; вместо этого всегда "
463 "предполагалось наличие, и в этом случае B<system>() всегда возвращала 1. "
464 "Начиная с glibc 2.1.3, эта проверка выполняется, так как несмотря на "
465 "требование POSIX.1-2001 a conforming implementation to provide a shell, "
466 "that shell may not be available or executable if the calling program has "
467 "previously called B<chroot>(2) (which is not specified by POSIX.1-2001)."
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "It is possible for the shell command to terminate with a status of 127, "
474 "which yields a B<system>() return value that is indistinguishable from the "
475 "case where a shell could not be executed in the child process."
476 msgstr ""
477 "Существует вероятность, что команда оболочки возвратит значение 127, которое "
478 "также является и возвращаемым значением самой B<system>(); в этом случае "
479 "нельзя понять, что невозможно выполнить оболочку в процессе-потомке."
480
481 #. type: SS
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "Caveats"
486 msgstr "Предостережения"
487
488 #. type: Plain text
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 msgid ""
492 "Do not use B<system>() from a privileged program (a set-user-ID or set-"
493 "group-ID program, or a program with capabilities) because strange values "
494 "for some environment variables might be used to subvert system integrity. "
495 "For example, B<PATH> could be manipulated so that an arbitrary program is "
496 "executed with privilege. Use the B<exec>(3) family of functions instead, "
497 "but not B<execlp>(3) or B<execvp>(3) (which also use the B<PATH> "
498 "environment variable to search for an executable)."
499 msgstr ""
500 "Не используйте B<system>() в привилегированных программах (программы с set-"
501 "user-ID или set-group-ID, или программы с мандатами), так как могут "
502 "использоваться странные значения некоторых переменных окружения для "
503 "разрушения целостности системы. Например, B<PATH> может быть изменена так, "
504 "что произвольная программа выполняется с расширенными правами. Вместо этого "
505 "используйте семейство функций B<exec>(3), но не B<execlp>(3) или "
506 "B<execvp>(3) (которые также используют переменную окружения B<PATH> для "
507 "поиска исполняемого файла)."
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid ""
513 "B<system>() will not, in fact, work properly from programs with set-user-ID "
514 "or set-group-ID privileges on systems on which I</bin/sh> is bash version 2: "
515 "as a security measure, bash 2 drops privileges on startup. (Debian uses a "
516 "different shell, B<dash>(1), which does not do this when invoked as B<sh>.)"
517 msgstr ""
518 "Функция B<system>(), фактически, работает неправильно для программ с "
519 "привилегиями set-user-ID или set-group-ID в системах, где I</bin/sh> это "
520 "bash версии 2: для безопасности bash 2 при запуске убирает привилегии (в "
521 "Debian используется другая оболочка, B<dash>(1), которая не делает этого, "
522 "если вызывается как B<sh>)."
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid ""
528 "Any user input that is employed as part of I<command> should be I<carefully> "
529 "sanitized, to ensure that unexpected shell commands or command options are "
530 "not executed. Such risks are especially grave when using B<system>() from "
531 "a privileged program."
532 msgstr ""
533 "Любой введённые пользователем данные, выполняемые как часть I<команды>, "
534 "должны быть I<внимательно> отцензурированы так, чтобы не выполнились "
535 "неожидаемые команды оболочки или параметры команды. Эти риски особенно "
536 "серьезны при использовании B<system>() из привилегированной программы."
537
538 #. type: SH
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "BUGS"
543 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
544
545 #. [BUG 211029](https://bugzilla.kernel.org/show_bug.cgi?id=211029)
546 #. [glibc bug](https://sourceware.org/bugzilla/show_bug.cgi?id=27143)
547 #. [POSIX bug](https://www.austingroupbugs.net/view.php?id=1440)
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "If the command name starts with a hyphen, B<sh>(1) interprets the command "
553 "name as an option, and the behavior is undefined. (See the B<-c> option to "
554 "B<sh>(1).) To work around this problem, prepend the command with a space as "
555 "in the following call:"
556 msgstr ""
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid " system(\" -unfortunate-command-name\");\n"
563 msgstr ""
564
565 #. type: SH
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "SEE ALSO"
570 msgstr "СМОТРИТЕ ТАКЖЕ"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "B<sh>(1), B<execve>(2), B<fork>(2), B<sigaction>(2), B<sigprocmask>(2), "
577 "B<wait>(2), B<exec>(3), B<signal>(7)"
578 msgstr ""
579 "B<sh>(1), B<execve>(2), B<fork>(2), B<sigaction>(2), B<sigprocmask>(2), "
580 "B<wait>(2), B<exec>(3), B<signal>(7)"
581
582 #. type: TH
583 #: debian-trixie
584 #, no-wrap
585 msgid "2024-05-02"
586 msgstr "2 мая 2024 г."
587
588 #. type: TH
589 #: debian-trixie
590 #, no-wrap
591 msgid "Linux man-pages 6.9.1"
592 msgstr "Страницы руководства Linux 6.9.1"
593
594 #. type: Plain text
595 #: debian-trixie
596 msgid "Standard C library (I<libc>, I<-lc>)"
597 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
598
599 #. type: TH
600 #: fedora-44 fedora-rawhide
601 #, no-wrap
602 msgid "2024-07-23"
603 msgstr "23 июля 2024 г."
604
605 #. type: TH
606 #: fedora-44 fedora-rawhide
607 #, no-wrap
608 msgid "Linux man-pages 6.13"
609 msgstr "Страницы руководства Linux 6.13"
610
611 #. type: TH
612 #: mageia-cauldron
613 #, no-wrap
614 msgid "Linux man-pages 6.17"
615 msgstr "Страницы руководства Linux 6.17"
616
617 #. type: TH
618 #: opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "Linux man-pages (unreleased)"
621 msgstr "Страницы руководства Linux (не выпущены)"