summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 2c6ad2d..4614d9a 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <err.h>
#include <grp.h>
+#include <paths.h>
#include <pwd.h>
#include "libdisk.h"
@@ -47,7 +48,7 @@ msgDebug(char *fmt, ...)
static int DebugFD = -1;
if (DebugFD == -1)
- DebugFD = open("/dev/ttyv1", O_RDWR);
+ DebugFD = open(_PATH_DEV"ttyv1", O_RDWR);
dbg = (char *)alloca(FILENAME_MAX);
strcpy(dbg, "DEBUG: ");
va_start(args, fmt);
OpenPOWER on IntegriCloud