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 Give usage() a chance.
details: https://anonhg.NetBSD.org/src/rev/8287e07bcb70
branches: trunk
changeset: 752689:8287e07bcb70
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Mar 03 17:37:01 2010 +0000
description:
Give usage() a chance.
XXX: UKFS_DEVICE_ARGVPROBE() interface
diffstat:
usr.sbin/puffs/rump_lfs/rump_lfs.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 0ee0a977e772 -r 8287e07bcb70 usr.sbin/puffs/rump_lfs/rump_lfs.c
--- a/usr.sbin/puffs/rump_lfs/rump_lfs.c Wed Mar 03 16:13:42 2010 +0000
+++ b/usr.sbin/puffs/rump_lfs/rump_lfs.c Wed Mar 03 17:37:01 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_lfs.c,v 1.15 2010/01/12 18:43:37 pooka Exp $ */
+/* $NetBSD: rump_lfs.c,v 1.16 2010/03/03 17:37:01 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -73,9 +73,12 @@
puffs_unmountonsignal(SIGINT, true);
puffs_unmountonsignal(SIGTERM, true);
- UKFS_DEVICE_ARGVPROBE(&part);
- if (part != ukfs_part_none) {
- errx(1, "lfs does not currently support embedded partitions");
+ if (argc >= 3) {
+ UKFS_DEVICE_ARGVPROBE(&part);
+ if (part != ukfs_part_none) {
+ errx(1, "lfs does not currently support "
+ "embedded partitions");
+ }
}
mount_lfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir);
Home |
Main Index |
Thread Index |
Old Index