Use _PATH_DEVNULL instead of hardcoding.
MFC after: 2 weeks
This commit is contained in:
parent
2d774f207c
commit
56858424bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302542
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user