diff options
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r-- | coreutils/chown.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index 282deccfb..c4c182d3c 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -10,6 +10,32 @@ | |||
10 | /* BB_AUDIT SUSv3 defects - none? */ | 10 | /* BB_AUDIT SUSv3 defects - none? */ |
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */ |
12 | 12 | ||
13 | //usage:#define chown_trivial_usage | ||
14 | //usage: "[-RhLHP"IF_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..." | ||
15 | //usage:#define chown_full_usage "\n\n" | ||
16 | //usage: "Change the owner and/or group of each FILE to OWNER and/or GROUP\n" | ||
17 | //usage: "\nOptions:" | ||
18 | //usage: "\n -R Recurse" | ||
19 | //usage: "\n -h Affect symlinks instead of symlink targets" | ||
20 | //usage: "\n -L Traverse all symlinks to directories" | ||
21 | //usage: "\n -H Traverse symlinks on command line only" | ||
22 | //usage: "\n -P Don't traverse symlinks (default)" | ||
23 | //usage: IF_DESKTOP( | ||
24 | //usage: "\n -c List changed files" | ||
25 | //usage: "\n -v List all files" | ||
26 | //usage: "\n -f Hide errors" | ||
27 | //usage: ) | ||
28 | //usage: | ||
29 | //usage:#define chown_example_usage | ||
30 | //usage: "$ ls -l /tmp/foo\n" | ||
31 | //usage: "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" | ||
32 | //usage: "$ chown root /tmp/foo\n" | ||
33 | //usage: "$ ls -l /tmp/foo\n" | ||
34 | //usage: "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" | ||
35 | //usage: "$ chown root.root /tmp/foo\n" | ||
36 | //usage: "ls -l /tmp/foo\n" | ||
37 | //usage: "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | ||
38 | |||
13 | #include "libbb.h" | 39 | #include "libbb.h" |
14 | 40 | ||
15 | /* This is a NOEXEC applet. Be very careful! */ | 41 | /* This is a NOEXEC applet. Be very careful! */ |