diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 14:04:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 14:04:00 +0000 |
commit | 0b28103cc774eb1ee62362cf61d52c32d44ec2cf (patch) | |
tree | 750cb18bdedf85f35b2e9d918d02f95f4450389c /coreutils/cp.c | |
parent | feecc7b74eeb36e66b57f191d337a68c1953576c (diff) | |
download | busybox-w32-0b28103cc774eb1ee62362cf61d52c32d44ec2cf.tar.gz busybox-w32-0b28103cc774eb1ee62362cf61d52c32d44ec2cf.tar.bz2 busybox-w32-0b28103cc774eb1ee62362cf61d52c32d44ec2cf.zip |
cd: "support" -v by ignoring it
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r-- | coreutils/cp.c | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index 40d3625b3..71a29396f 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -46,7 +46,55 @@ int cp_main(int argc, char **argv) | |||
46 | // -R (and therefore -r) turns on -d (coreutils does this) | 46 | // -R (and therefore -r) turns on -d (coreutils does this) |
47 | // -a = -pdR | 47 | // -a = -pdR |
48 | opt_complementary = "-2:l--s:s--l:Pd:rRd:Rd:apdR:HL"; | 48 | opt_complementary = "-2:l--s:s--l:Pd:rRd:Rd:apdR:HL"; |
49 | flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPH"); | 49 | // -v (--verbose) is ignored |
50 | flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHv"); | ||
51 | /* Options of cp from GNU coreutils 6.10: | ||
52 | * -a, --archive | ||
53 | * -f, --force | ||
54 | * -i, --interactive | ||
55 | * -l, --link | ||
56 | * -L, --dereference | ||
57 | * -P, --no-dereference | ||
58 | * -R, -r, --recursive | ||
59 | * -s, --symbolic-link | ||
60 | * -v, --verbose | ||
61 | * -H follow command-line symbolic links in SOURCE | ||
62 | * -d same as --no-dereference --preserve=links | ||
63 | * -p same as --preserve=mode,ownership,timestamps | ||
64 | * -c same as --preserve=context | ||
65 | * NOT SUPPORTED IN BBOX: | ||
66 | * long options are not supported (even those above). | ||
67 | * --backup[=CONTROL] | ||
68 | * make a backup of each existing destination file | ||
69 | * -b like --backup but does not accept an argument | ||
70 | * --copy-contents | ||
71 | * copy contents of special files when recursive | ||
72 | * --preserve[=ATTR_LIST] | ||
73 | * preserve attributes (default: mode,ownership,timestamps), | ||
74 | * if possible additional attributes: security context,links,all | ||
75 | * --no-preserve=ATTR_LIST | ||
76 | * --parents | ||
77 | * use full source file name under DIRECTORY | ||
78 | * --remove-destination | ||
79 | * remove each existing destination file before attempting to open | ||
80 | * --sparse=WHEN | ||
81 | * control creation of sparse files | ||
82 | * --strip-trailing-slashes | ||
83 | * remove any trailing slashes from each SOURCE argument | ||
84 | * -S, --suffix=SUFFIX | ||
85 | * override the usual backup suffix | ||
86 | * -t, --target-directory=DIRECTORY | ||
87 | * copy all SOURCE arguments into DIRECTORY | ||
88 | * -T, --no-target-directory | ||
89 | * treat DEST as a normal file | ||
90 | * -u, --update | ||
91 | * copy only when the SOURCE file is newer than the destination | ||
92 | * file or when the destination file is missing | ||
93 | * -x, --one-file-system | ||
94 | * stay on this file system | ||
95 | * -Z, --context=CONTEXT | ||
96 | * (SELinux) set SELinux security context of copy to CONTEXT | ||
97 | */ | ||
50 | argc -= optind; | 98 | argc -= optind; |
51 | argv += optind; | 99 | argv += optind; |
52 | flags ^= FILEUTILS_DEREFERENCE; /* the sense of this flag was reversed */ | 100 | flags ^= FILEUTILS_DEREFERENCE; /* the sense of this flag was reversed */ |