Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/puffs/rump_lfs After mount_lfs_parseargs, reset get...
details: https://anonhg.NetBSD.org/src/rev/711a0f52f717
branches: trunk
changeset: 783838:711a0f52f717
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Jan 10 08:35:26 2013 +0000
description:
After mount_lfs_parseargs, reset getopt for lfs_cleaner_main.
diffstat:
usr.sbin/puffs/rump_lfs/rump_lfs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r cdbd2fac3296 -r 711a0f52f717 usr.sbin/puffs/rump_lfs/rump_lfs.c
--- a/usr.sbin/puffs/rump_lfs/rump_lfs.c Thu Jan 10 08:16:10 2013 +0000
+++ b/usr.sbin/puffs/rump_lfs/rump_lfs.c Thu Jan 10 08:35:26 2013 +0000
@@ -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.
@@ -82,6 +82,10 @@
}
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);
if (!p2m)
err(1, "init p2k");
Home |
Main Index |
Thread Index |
Old Index