Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2002 04:15:57 -0700 (PDT)
From:      Stephen McKay <mckay@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/cp cp.c
Message-ID:  <200209221115.g8MBFv00023063@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
mckay       2002/09/22 04:15:57 PDT

  Modified files:
    bin/cp               cp.c 
  Log:
  cp -p could report success even if a file copy failed.  This was due to
  the cumulative exit status being overwritten when directory permissions
  were being set.  This was particularly bad when called from mv(1) to
  perform a cross-device move as the original files were deleted even if
  the copy failed.
  
  Reported by:    Slaven Rezic <slaven.rezic@berlin.de>
  Patch by:       bde
  PR:             42789
  
  Revision  Changes    Path
  1.42      +4 -3      src/bin/cp/cp.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209221115.g8MBFv00023063>