diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 12:49:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 12:49:29 +0200 |
commit | 2d7b5bfa9bd0b8096bf1ec5069fb6638d538a028 (patch) | |
tree | 5d44e107ed6ad34e804fa14d4febf08540650f66 /libbb/Config.in | |
parent | 09e63bb81f12707d31c8c4570931af0196b53a46 (diff) | |
download | busybox-w32-2d7b5bfa9bd0b8096bf1ec5069fb6638d538a028.tar.gz busybox-w32-2d7b5bfa9bd0b8096bf1ec5069fb6638d538a028.tar.bz2 busybox-w32-2d7b5bfa9bd0b8096bf1ec5069fb6638d538a028.zip |
cp: by popular demand, make it POSIX compliant (but less safe)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.in')
-rw-r--r-- | libbb/Config.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/Config.in b/libbb/Config.in index a572775c9..9b616d1af 100644 --- a/libbb/Config.in +++ b/libbb/Config.in | |||
@@ -114,6 +114,16 @@ config FEATURE_EDITING_ASK_TERMINAL | |||
114 | correctly, or want to save on code size (about 300 bytes), | 114 | correctly, or want to save on code size (about 300 bytes), |
115 | then do not turn this option on. | 115 | then do not turn this option on. |
116 | 116 | ||
117 | config FEATURE_NON_POSIX_CP | ||
118 | bool "Non-POSIX, but safer, copying to special nodes" | ||
119 | default y | ||
120 | help | ||
121 | With this option, "cp file symlink" will delete symlink | ||
122 | and create a regular file. This does not conform to POSIX, | ||
123 | but prevents a symlink attack. | ||
124 | Similarly, "cp file device" will not send file's data | ||
125 | to the device. | ||
126 | |||
117 | config FEATURE_VERBOSE_CP_MESSAGE | 127 | config FEATURE_VERBOSE_CP_MESSAGE |
118 | bool "Give more precise messages when copy fails (cp, mv etc)" | 128 | bool "Give more precise messages when copy fails (cp, mv etc)" |
119 | default n | 129 | default n |