Author: delphij Date: Mon Jul 11 05:44:58 2016 New Revision: 302542 URL: https://svnweb.freebsd.org/changeset/base/302542
Log: Use _PATH_DEVNULL instead of hardcoding. MFC after: 2 weeks Modified: head/usr.bin/mail/collect.c Modified: head/usr.bin/mail/collect.c ============================================================================== --- head/usr.bin/mail/collect.c Mon Jul 11 05:17:48 2016 (r302541) +++ head/usr.bin/mail/collect.c Mon Jul 11 05:44:58 2016 (r302542) @@ -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; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"