From bae9418ffbed23529b54d269c036ef9af71671ef Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 25 Jul 2016 14:35:48 +0000 Subject: MFC r302542: Use _PATH_DEVNULL instead of hardcoding. Approved by: re (kib) --- usr.bin/mail/collect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/mail') 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; } -- cgit v1.1