diff options
author | guido <guido@FreeBSD.org> | 2003-11-10 09:40:18 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2003-11-10 09:40:18 +0000 |
commit | 9e1c15152d8b38156ce6e1d4a2fbd3e11a56674b (patch) | |
tree | 53c464dc84cd72052fd171d617613082dfda0f94 /bin/ed | |
parent | 380c6f2932599fad3793a1ddb91a028c22f5b5d0 (diff) | |
download | FreeBSD-src-9e1c15152d8b38156ce6e1d4a2fbd3e11a56674b.zip FreeBSD-src-9e1c15152d8b38156ce6e1d4a2fbd3e11a56674b.tar.gz |
When the P flag is set (i.e. Overwrite regular files before deleting them),
do only unlink the file if we could indeed overwrite the file.
Old behaviour: rm -P /tmp/foo (foo mode 0444) would NOT overwrite foo,
but still delete it (with a warning: rm: foo: Permission denied)
New behaviour: Just the EPERM warning, but no deletion
Reviewed by: bde
Diffstat (limited to 'bin/ed')
0 files changed, 0 insertions, 0 deletions