diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-27 22:06:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-27 22:06:24 +0000 |
commit | c0431ed455a601ddbfcd9f30d6397d4e9145cf54 (patch) | |
tree | 7eade59699338d065827751d37e72e45d2b4440b /include | |
parent | 4809a9f78eecc7346e5d73b7f60ae6c51e057632 (diff) | |
download | busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.tar.gz busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.tar.bz2 busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.zip |
cp: fix "cp -RL" to create regular files even if src is a symlink
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7a8bfdffb..dfcc96d5b 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -231,12 +231,13 @@ enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */ | |||
231 | FILEUTILS_INTERACTIVE = 0x10, | 231 | FILEUTILS_INTERACTIVE = 0x10, |
232 | FILEUTILS_MAKE_HARDLINK = 0x20, | 232 | FILEUTILS_MAKE_HARDLINK = 0x20, |
233 | FILEUTILS_MAKE_SOFTLINK = 0x40, | 233 | FILEUTILS_MAKE_SOFTLINK = 0x40, |
234 | FILEUTILS_DEREF_SOFTLINK = 0x80, | ||
234 | #if ENABLE_SELINUX | 235 | #if ENABLE_SELINUX |
235 | FILEUTILS_PRESERVE_SECURITY_CONTEXT = 0x80, | 236 | FILEUTILS_PRESERVE_SECURITY_CONTEXT = 0x100, |
236 | FILEUTILS_SET_SECURITY_CONTEXT = 0x100 | 237 | FILEUTILS_SET_SECURITY_CONTEXT = 0x200 |
237 | #endif | 238 | #endif |
238 | }; | 239 | }; |
239 | #define FILEUTILS_CP_OPTSTR "pdRfils" USE_SELINUX("c") | 240 | #define FILEUTILS_CP_OPTSTR "pdRfilsL" USE_SELINUX("c") |
240 | extern int remove_file(const char *path, int flags); | 241 | extern int remove_file(const char *path, int flags); |
241 | /* NB: without FILEUTILS_RECUR in flags, it will basically "cat" | 242 | /* NB: without FILEUTILS_RECUR in flags, it will basically "cat" |
242 | * the source, not copy (unless "source" is a directory). | 243 | * the source, not copy (unless "source" is a directory). |