summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/tst01.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdisk/tst01.c')
-rw-r--r--lib/libdisk/tst01.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c
index 9702ff2..1ad9421 100644
--- a/lib/libdisk/tst01.c
+++ b/lib/libdisk/tst01.c
@@ -21,6 +21,7 @@
#include <readline/history.h>
#endif
#include <sys/types.h>
+#include <paths.h>
#include "libdisk.h"
u_char mbr[] = {
@@ -91,7 +92,7 @@ Scan_Disk(struct disk *d)
u_long l;
int i,j,fd;
- strcpy(device,"/dev/");
+ strcpy(device,_PATH_DEV);
strcat(device,d->name);
fd = open(device,O_RDWR);
OpenPOWER on IntegriCloud