cvs commit: src/bin/rm rm.c

Guido van Rooij guido at FreeBSD.org
Mon Nov 10 01:40:19 PST 2003


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


More information about the cvs-src mailing list