summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/v.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-02-28 17:50:29 +0000
committerobrien <obrien@FreeBSD.org>2001-02-28 17:50:29 +0000
commit68b225051bfb5632ab79f2bd176479264331ff1a (patch)
treead3d9b3f909ea6443fec970430bcaf3849f9d9e6 /sbin/vinum/v.c
parent130eca7d1b828efc4b1276e38a285254ae91aafa (diff)
downloadFreeBSD-src-68b225051bfb5632ab79f2bd176479264331ff1a.zip
FreeBSD-src-68b225051bfb5632ab79f2bd176479264331ff1a.tar.gz
Use _PATH_DEV.
Reviewed by: grog
Diffstat (limited to 'sbin/vinum/v.c')
-rw-r--r--sbin/vinum/v.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c
index 0cda377..27798c3 100644
--- a/sbin/vinum/v.c
+++ b/sbin/vinum/v.c
@@ -45,6 +45,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <netdb.h>
+#include <paths.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
@@ -529,11 +530,11 @@ make_devices(void)
else
devfs_is_active = 0;
- if (!devfs_is_active && access("/dev", W_OK) < 0) { /* can't access /dev to write? */
+ if (!devfs_is_active && access(_PATH_DEV, W_OK) < 0) { /* can't access /dev to write? */
if (errno == EROFS) /* because it's read-only, */
- fprintf(stderr, VINUMMOD ": /dev is mounted read-only, not rebuilding " VINUM_DIR "\n");
+ fprintf(stderr, VINUMMOD ": %s is mounted read-only, not rebuilding %s\n", _PATH_DEV, VINUM_DIR);
else
- vinum_perror(VINUMMOD ": Can't write to /dev");
+ vinum_perror(VINUMMOD ": Can't write to " _PATH_DEV);
return;
}
if (history) {
OpenPOWER on IntegriCloud