summaryrefslogtreecommitdiff
path: root/usr.sbin/sicontrol
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commit1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch)
treea816cae9543dbb9277a62d68a91416fb2fb33da3 /usr.sbin/sicontrol
parent2961fc5ac412eec93a03d4badbbf4e01918d864a (diff)
downloadsrc-test2-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.tar.gz
src-test2-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.zip
Notes
Diffstat (limited to 'usr.sbin/sicontrol')
-rw-r--r--usr.sbin/sicontrol/sicontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sicontrol/sicontrol.c b/usr.sbin/sicontrol/sicontrol.c
index 88e1770807a7..eb6560f4eac4 100644
--- a/usr.sbin/sicontrol/sicontrol.c
+++ b/usr.sbin/sicontrol/sicontrol.c
@@ -39,6 +39,7 @@ static const char rcsid[] =
#include <ctype.h>
#include <err.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -156,7 +157,7 @@ main(int argc, char **argv)
if (strchr(Devname, '/') == NULL) {
char *acp = malloc(6 + strlen(Devname));
- strcpy(acp, "/dev/");
+ strcpy(acp, _PATH_DEV);
strcat(acp, Devname);
Devname = acp;
}