cvs commit: src/bin/rm

Liam J. Foy liamfoy at
Sat Nov 6 11:38:09 PST 2004

liamfoy     2004/11/06 11:37:44 PST

DragonFly src repository

  Modified files:
    bin/rm               rm.c 
  Sync with FreeBSD rm(1) with my modifications. Some things have been
  left out of this sync for time being.
  - Fix the leakage of a file descriptor in rm_overwrite for non-fatal
    errors(this is for rm -P).
  - Fix the fatal malloc() error message.
  - 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. See
    for more details.
  - Fix poor wording in comment.
  - When fts_read() cannot stat the file, it can't be unlinked.  At
    that case, don't display error message when -f flag is used.
  - Kindly let the user know rm(1) could not overwrite non-regular
    files and continue to unlink.
  - Static functions.
  - Constify rw_overwrite() and check().
  Ok'ed by: kernel@ eirikn@ and dillon@
  Revision  Changes    Path
  1.9       +45 -27    src/bin/rm/rm.c

More information about the Commits mailing list