Date: Mon, 10 Nov 2003 01:40:18 -0800 (PST) From: Guido van Rooij <guido@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/rm rm.c Message-ID: <200311100940.hAA9eIlE099055@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
guido 2003/11/10 01:40:18 PST FreeBSD src repository Modified files: bin/rm rm.c Log: 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 Revision Changes Path 1.45 +14 -8 src/bin/rm/rm.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311100940.hAA9eIlE099055>