After mount_lfs_parseargs, reset getopt for lfs_cleaner_main.
This commit is contained in:
parent
536ad83369
commit
014f25f78d
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rump_lfs.c,v 1.16 2010/03/03 17:37:01 pooka Exp $ */
|
/* $NetBSD: rump_lfs.c,v 1.17 2013/01/10 08:35:26 riastradh Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
|
||||||
@ -82,6 +82,10 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
mount_lfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir);
|
mount_lfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir);
|
||||||
|
|
||||||
|
/* Reset getopt for lfs_cleaner_main. */
|
||||||
|
optreset = 1;
|
||||||
|
optind = 1;
|
||||||
|
|
||||||
p2m = p2k_init(0);
|
p2m = p2k_init(0);
|
||||||
if (!p2m)
|
if (!p2m)
|
||||||
err(1, "init p2k");
|
err(1, "init p2k");
|
||||||
|
Loading…
Reference in New Issue
Block a user