svn commit: r303281 - stable/9/usr.bin/mail
Xin LI
delphij at FreeBSD.org
Mon Jul 25 00:46:47 UTC 2016
Author: delphij
Date: Mon Jul 25 00:46:45 2016
New Revision: 303281
URL: https://svnweb.freebsd.org/changeset/base/303281
Log:
MFC r302542:
Use _PATH_DEVNULL instead of hardcoding.
Modified:
stable/9/usr.bin/mail/collect.c
Directory Properties:
stable/9/usr.bin/mail/ (props changed)
Modified: stable/9/usr.bin/mail/collect.c
==============================================================================
--- stable/9/usr.bin/mail/collect.c Mon Jul 25 00:46:01 2016 (r303280)
+++ stable/9/usr.bin/mail/collect.c Mon Jul 25 00:46:45 2016 (r303281)
@@ -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;
}
More information about the svn-src-stable-9
mailing list