Tweak from the cvs sources just after the 1.9.26 release:
1998-03-07 Tim Pierce <twp@skepsis.com> * rcs.c (RCS_checkout): Negation bug when checking out symlinks: existence_error should be !existence_error. This shouldn't cause any major merge problems later.
This commit is contained in:
parent
fdc021ba7f
commit
ab10ac1949
@ -3741,7 +3741,7 @@ RCS_checkout (rcs, workfile, rev, nametag, options, sout, pfn, callerdat)
|
||||
whether it should be considered an error for `dest' to exist
|
||||
at this point. If so, the unlink call should be removed and
|
||||
`symlink' should signal the error. -twp) */
|
||||
if (unlink (dest) < 0 && existence_error (errno))
|
||||
if (unlink (dest) < 0 && !existence_error (errno))
|
||||
error (1, errno, "cannot remove %s", dest);
|
||||
if (symlink (info->data, dest) < 0)
|
||||
error (1, errno, "cannot create symbolic link from %s to %s",
|
||||
|
Loading…
Reference in New Issue
Block a user