2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Use _PATH_DEV consistently

This commit is contained in:
Todd C. Miller
2017-06-29 18:10:53 -06:00
parent c77c5d026a
commit 6d4d4594b7
8 changed files with 31 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2003, 2004, 2008-2011, 2013, 2015
* Copyright (c) 2001, 2003, 2004, 2008-2011, 2013, 2015, 2017
* Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -43,6 +43,7 @@
#endif
#include "sudo_compat.h"
#include "pathnames.h"
#define MKTEMP_FILE 1
#define MKTEMP_DIR 2
@@ -83,7 +84,7 @@ seed_random(void)
/*
* Seed from /dev/urandom if possible.
*/
fd = open("/dev/urandom", O_RDONLY);
fd = open(_PATH_DEV "urandom", O_RDONLY);
if (fd != -1) {
ssize_t nread;