From 9ef603fa1fb6a514c2ca8a49fe3cfd4af8d97303 Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 11 Jul 2016 05:44:58 +0000 Subject: [PATCH] Use _PATH_DEVNULL instead of hardcoding. MFC after: 2 weeks --- usr.bin/mail/collect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c index 7a3b27cfea0..0d2c43644cf 100644 --- a/usr.bin/mail/collect.c +++ b/usr.bin/mail/collect.c @@ -339,9 +339,9 @@ collect(struct header *hp, int printheaders) 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; } -- 2.45.0