diff options
author | peter <peter@FreeBSD.org> | 1999-12-11 12:50:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-11 12:50:10 +0000 |
commit | 206fbe27a15175665fddfb75d6e456be523b4ab2 (patch) | |
tree | ab9a84f957ba62ca61273ac92b92d0a1bf428bc6 /contrib/cvs/src/logmsg.c | |
parent | 474a3106d4cfb9005960e108e8fdb84c778d1d94 (diff) | |
download | FreeBSD-src-206fbe27a15175665fddfb75d6e456be523b4ab2.zip FreeBSD-src-206fbe27a15175665fddfb75d6e456be523b4ab2.tar.gz |
Merge cyclic changes for 1.10.7 only our mainline.
Diffstat (limited to 'contrib/cvs/src/logmsg.c')
-rw-r--r-- | contrib/cvs/src/logmsg.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/cvs/src/logmsg.c b/contrib/cvs/src/logmsg.c index 6807937..e1b8ed0 100644 --- a/contrib/cvs/src/logmsg.c +++ b/contrib/cvs/src/logmsg.c @@ -4,6 +4,8 @@ * * You may distribute under the terms of the GNU General Public License as * specified in the README file that comes with the CVS source distribution. + * + * $FreeBSD$ */ #include "cvs.h" @@ -452,7 +454,8 @@ do_verify (messagep, repository) { /* Since following error() exits, delete the temp file now. */ - unlink_file (fname); + if (unlink_file (fname) < 0) + error (0, errno, "cannot remove %s", fname); error (1, retcode == -1 ? errno : 0, "Message verification failed"); @@ -510,7 +513,8 @@ do_verify (messagep, repository) /* Delete the temp file */ - unlink_file (fname); + if (unlink_file (fname) < 0) + error (0, errno, "cannot remove %s", fname); free (fname); } } |