svn commit: r342701 - head/sbin/savecore
Mark Johnston
markj at FreeBSD.org
Wed Jan 2 17:34:26 UTC 2019
Author: markj
Date: Wed Jan 2 17:34:25 2019
New Revision: 342701
URL: https://svnweb.freebsd.org/changeset/base/342701
Log:
Fix an error check after r342699.
Reported by: gcc
MFC with: r342699
Sponsored by: The FreeBSD Foundation
Modified:
head/sbin/savecore/savecore.c
Modified: head/sbin/savecore/savecore.c
==============================================================================
--- head/sbin/savecore/savecore.c Wed Jan 2 17:13:55 2019 (r342700)
+++ head/sbin/savecore/savecore.c Wed Jan 2 17:34:25 2019 (r342701)
@@ -258,7 +258,7 @@ writebounds(int savedirfd, int bounds)
FILE *fp;
if ((fp = xfopenat(savedirfd, "bounds", O_WRONLY | O_CREAT | O_TRUNC,
- "w", 0644)) < 0) {
+ "w", 0644)) == NULL) {
logmsg(LOG_WARNING, "unable to write to bounds file: %m");
return;
}
More information about the svn-src-all
mailing list