diff options
author | delphij <delphij@FreeBSD.org> | 2016-07-25 00:46:01 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-07-25 00:46:01 +0000 |
commit | 6a0290c37b0dcef2667c24f3b193eae8759bd768 (patch) | |
tree | a6dd40652319edbb679847078552360c5779eecb /usr.bin | |
parent | 8581f6d9f8e74494363f5a934ab1c88e91fed9cd (diff) | |
download | FreeBSD-src-6a0290c37b0dcef2667c24f3b193eae8759bd768.zip FreeBSD-src-6a0290c37b0dcef2667c24f3b193eae8759bd768.tar.gz |
MFC r302542:
Use _PATH_DEVNULL instead of hardcoding.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mail/collect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c index ef72e9f..ff55e07 100644 --- a/usr.bin/mail/collect.c +++ b/usr.bin/mail/collect.c @@ -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; } |