Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/chown.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/coreutils/chown.c

    r2725 r3232  
    1010/* BB_AUDIT SUSv3 defects - none? */
    1111/* 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"
    1237
    1338#include "libbb.h"
     
    102127    param.chown_func = chown;
    103128    if (OPT_NODEREF
    104         /* || (OPT_RECURSE && !OPT_TRAVERSE_TOP): */
    105         IF_DESKTOP( || (opt & (BIT_RECURSE|BIT_TRAVERSE_TOP)) == BIT_RECURSE)
     129    /* || (OPT_RECURSE && !OPT_TRAVERSE_TOP): */
     130    IF_DESKTOP( || (opt & (BIT_RECURSE|BIT_TRAVERSE_TOP)) == BIT_RECURSE)
    106131    ) {
    107132        param.chown_func = lchown;
Note: See TracChangeset for help on using the changeset viewer.