Author: delphij
Date: Mon Jul 25 00:46:01 2016
New Revision: 303280
URL: https://svnweb.freebsd.org/changeset/base/303280

Log:
  MFC r302542:
  
  Use _PATH_DEVNULL instead of hardcoding.

Modified:
  stable/10/usr.bin/mail/collect.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/mail/collect.c
==============================================================================
--- stable/10/usr.bin/mail/collect.c    Sun Jul 24 23:40:33 2016        
(r303279)
+++ stable/10/usr.bin/mail/collect.c    Mon Jul 25 00:46:01 2016        
(r303280)
@@ -339,9 +339,9 @@ cont:
                                int nullfd, tempfd, rc;
                                char tempname2[PATHSIZE];
 
-                               if ((nullfd = open("/dev/null", O_RDONLY, 0))
+                               if ((nullfd = open(_PATH_DEVNULL, O_RDONLY, 0))
                                    == -1) {
-                                       warn("/dev/null");
+                                       warn(_PATH_DEVNULL);
                                        break;
                                }
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to