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;
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to