Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/chown.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/chown.c
r2725 r3232 10 10 /* BB_AUDIT SUSv3 defects - none? */ 11 11 /* http://www.opengroup.org/onlinepubs/007904975/utilities/chown.html */ 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: "\n -R Recurse" 18 //usage: "\n -h Affect symlinks instead of symlink targets" 19 //usage: "\n -L Traverse all symlinks to directories" 20 //usage: "\n -H Traverse symlinks on command line only" 21 //usage: "\n -P Don't traverse symlinks (default)" 22 //usage: IF_DESKTOP( 23 //usage: "\n -c List changed files" 24 //usage: "\n -v List all files" 25 //usage: "\n -f Hide errors" 26 //usage: ) 27 //usage: 28 //usage:#define chown_example_usage 29 //usage: "$ ls -l /tmp/foo\n" 30 //usage: "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" 31 //usage: "$ chown root /tmp/foo\n" 32 //usage: "$ ls -l /tmp/foo\n" 33 //usage: "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" 34 //usage: "$ chown root.root /tmp/foo\n" 35 //usage: "ls -l /tmp/foo\n" 36 //usage: "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" 12 37 13 38 #include "libbb.h" … … 102 127 param.chown_func = chown; 103 128 if (OPT_NODEREF 104 105 129 /* || (OPT_RECURSE && !OPT_TRAVERSE_TOP): */ 130 IF_DESKTOP( || (opt & (BIT_RECURSE|BIT_TRAVERSE_TOP)) == BIT_RECURSE) 106 131 ) { 107 132 param.chown_func = lchown;
Note:
See TracChangeset
for help on using the changeset viewer.