Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2016 05:44:58 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302542 - head/usr.bin/mail
Message-ID:  <201607110544.u6B5iwFm029354@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 				}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607110544.u6B5iwFm029354>