diff options
author | iedowse <iedowse@FreeBSD.org> | 2004-01-04 17:17:46 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2004-01-04 17:17:46 +0000 |
commit | 6fde69b7d17726e5071e0aeb2f166836ab07b949 (patch) | |
tree | fdc9b1d00381bd4ca4a8f4f606ffa13e1edf38e4 /sbin/dump | |
parent | beec06dbdd5315f8c1228033b63ea4968a4d2fd3 (diff) | |
download | FreeBSD-src-6fde69b7d17726e5071e0aeb2f166836ab07b949.zip FreeBSD-src-6fde69b7d17726e5071e0aeb2f166836ab07b949.tar.gz |
Define _PATH_MKSNAP_FFS and use it in dump(8) instead of assuming
that mksnap_ffs(8) can be found using the current $PATH.
Reviewed by: mckusick
Diffstat (limited to 'sbin/dump')
-rw-r--r-- | sbin/dump/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 432d185..94d4d03 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -321,8 +321,8 @@ main(int argc, char *argv[]) snprintf(snapname, sizeof snapname, "%s/.snap/dump_snapshot", mntpt); - snprintf(snapcmd, sizeof snapcmd, - "mksnap_ffs %s %s", mntpt, snapname); + snprintf(snapcmd, sizeof snapcmd, "%s %s %s", + _PATH_MKSNAP_FFS, mntpt, snapname); unlink(snapname); if (system(snapcmd) != 0) errx(X_STARTUP, "Cannot create %s: %s\n", |