summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-07-25 14:35:48 +0000
committerdelphij <delphij@FreeBSD.org>2016-07-25 14:35:48 +0000
commitbae9418ffbed23529b54d269c036ef9af71671ef (patch)
treea27bc911ba5ecfd9804bc3e27838f91b47b8a870 /usr.bin/mail
parenteafa662f76d570477b7d79bbb4280c64591774dd (diff)
downloadFreeBSD-src-bae9418ffbed23529b54d269c036ef9af71671ef.zip
FreeBSD-src-bae9418ffbed23529b54d269c036ef9af71671ef.tar.gz
MFC r302542:
Use _PATH_DEVNULL instead of hardcoding. Approved by: re (kib)
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/collect.c4
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;
}
OpenPOWER on IntegriCloud