aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chown.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-31 14:43:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/chown.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.bz2
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.zip
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/chown.c')
-rw-r--r--coreutils/chown.c26
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! */