diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
commit | 1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch) | |
tree | a816cae9543dbb9277a62d68a91416fb2fb33da3 /usr.sbin/quot | |
parent | 2961fc5ac412eec93a03d4badbbf4e01918d864a (diff) | |
download | src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.tar.gz src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.zip |
Notes
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r-- | usr.sbin/quot/quot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index ceef657064a6..01f822eb383a 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -44,6 +44,7 @@ static const char rcsid[] = #include <err.h> #include <fcntl.h> #include <errno.h> +#include <paths.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> @@ -569,7 +570,7 @@ main(argc,argv) for (; --cnt >= 0; mp++) { if (!strncmp(mp->f_fstypename, "ufs", MFSNAMELEN)) { if ((nm = strrchr(mp->f_mntfromname,'/'))) { - sprintf(dev,"/dev/%s",nm + 1); + sprintf(dev,"%s%s",_PATH_DEV,nm + 1); nm = dev; } else nm = mp->f_mntfromname; |