Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2016 14:35:48 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r303296 - stable/11/usr.bin/mail
Message-ID:  <201607251435.u6PEZmR4046617@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Jul 25 14:35:48 2016
New Revision: 303296
URL: https://svnweb.freebsd.org/changeset/base/303296

Log:
  MFC r302542:
  
  Use _PATH_DEVNULL instead of hardcoding.
  
  Approved by:	re (kib)

Modified:
  stable/11/usr.bin/mail/collect.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/mail/collect.c
==============================================================================
--- stable/11/usr.bin/mail/collect.c	Mon Jul 25 14:35:14 2016	(r303295)
+++ stable/11/usr.bin/mail/collect.c	Mon Jul 25 14:35:48 2016	(r303296)
@@ -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?201607251435.u6PEZmR4046617>