summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/src/logmsg.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1999-02-28 21:30:22 +0000
committertholo <tholo@openbsd.org>1999-02-28 21:30:22 +0000
commitc71bc7e269286e43816004eb0fcd7a55f036cd69 (patch)
tree794eb682ed86bb344bf2e65b4bee5ea179297b82 /gnu/usr.bin/cvs/src/logmsg.c
parentconditionalize use of sbus_testdma() (diff)
downloadwireguard-openbsd-c71bc7e269286e43816004eb0fcd7a55f036cd69.tar.xz
wireguard-openbsd-c71bc7e269286e43816004eb0fcd7a55f036cd69.zip
Latest version from Cyclic
Diffstat (limited to 'gnu/usr.bin/cvs/src/logmsg.c')
-rw-r--r--gnu/usr.bin/cvs/src/logmsg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/src/logmsg.c b/gnu/usr.bin/cvs/src/logmsg.c
index 67194be4f47..6d45ca31cd3 100644
--- a/gnu/usr.bin/cvs/src/logmsg.c
+++ b/gnu/usr.bin/cvs/src/logmsg.c
@@ -446,7 +446,8 @@ do_verify (message, 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");
@@ -455,7 +456,8 @@ do_verify (message, repository)
/* Delete the temp file */
- unlink_file (fname);
+ if (unlink_file (fname) < 0)
+ error (0, errno, "cannot remove %s", fname);
free (fname);
}
}