DragonFly BSD
DragonFly commits List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/bin/rm


From: "Liam J. Foy" <liamfoy@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 6 Nov 2004 11:37:44 -0800 (PST)

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

DragonFly src repository

  Modified files:
    bin/rm               rm.c 
  Log:
  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
    http://www.freebsd.org/cgi/cvsweb.cgi/src/bin/rm/rm.c?rev=1.45&content-type=text/x-cvsweb-markup
    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


http://www.dragonflybsd.org/cvsweb/src/bin/rm/rm.c.diff?r1=1.8&r2=1.9&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]