aboutsummaryrefslogtreecommitdiff
path: root/debianutils/run_parts.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /debianutils/run_parts.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'debianutils/run_parts.c')
-rw-r--r--debianutils/run_parts.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 53d33cec5..6205595bf 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -8,7 +8,7 @@
8 * Based on the Debian run-parts program, version 1.15 8 * Based on the Debian run-parts program, version 1.15
9 * Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>, 9 * Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>,
10 * Copyright (C) 1996-1999 Guy Maor <maor@debian.org> 10 * Copyright (C) 1996-1999 Guy Maor <maor@debian.org>
11 * 11 *
12 * 12 *
13 * This program is free software; you can redistribute it and/or modify 13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by 14 * it under the terms of the GNU General Public License as published by
@@ -31,21 +31,21 @@
31 * attempt to write a program! :-) . */ 31 * attempt to write a program! :-) . */
32 32
33/* This piece of code is heavily based on the original version of run-parts, 33/* This piece of code is heavily based on the original version of run-parts,
34 * taken from debian-utils. I've only removed the long options and a the 34 * taken from debian-utils. I've only removed the long options and a the
35 * report mode. As the original run-parts support only long options, I've 35 * report mode. As the original run-parts support only long options, I've
36 * broken compatibility because the BusyBox policy doesn't allow them. 36 * broken compatibility because the BusyBox policy doesn't allow them.
37 * The supported options are: 37 * The supported options are:
38 * -t test. Print the name of the files to be executed, without 38 * -t test. Print the name of the files to be executed, without
39 * execute them. 39 * execute them.
40 * -a ARG argument. Pass ARG as an argument the program executed. It can 40 * -a ARG argument. Pass ARG as an argument the program executed. It can
41 * be repeated to pass multiple arguments. 41 * be repeated to pass multiple arguments.
42 * -u MASK umask. Set the umask of the program executed to MASK. */ 42 * -u MASK umask. Set the umask of the program executed to MASK. */
43 43
44/* TODO 44/* TODO
45 * done - convert calls to error in perror... and remove error() 45 * done - convert calls to error in perror... and remove error()
46 * done - convert malloc/realloc to their x... counterparts 46 * done - convert malloc/realloc to their x... counterparts
47 * done - remove catch_sigchld 47 * done - remove catch_sigchld
48 * done - use bb's concat_path_file() 48 * done - use bb's concat_path_file()
49 * done - declare run_parts_main() as extern and any other function as static? 49 * done - declare run_parts_main() as extern and any other function as static?
50 */ 50 */
51 51
@@ -85,7 +85,7 @@ int run_parts_main(int argc, char **argv)
85 /* Set the umask of the programs executed */ 85 /* Set the umask of the programs executed */
86 case 'u': 86 case 'u':
87 /* Check and set the umask of the program executed. As stated in the original 87 /* Check and set the umask of the program executed. As stated in the original
88 * run-parts, the octal conversion in libc is not foolproof; it will take the 88 * run-parts, the octal conversion in libc is not foolproof; it will take the
89 * 8 and 9 digits under some circumstances. We'll just have to live with it. 89 * 8 and 9 digits under some circumstances. We'll just have to live with it.
90 */ 90 */
91 umask(bb_xgetlarg(optarg, 8, 0, 07777)); 91 umask(bb_xgetlarg(optarg, 8, 0, 07777));