diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c index 7a3b27cfea0c..0d2c43644cff 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; }