Module Name:    src
Committed By:   pooka
Date:           Wed Mar  3 17:37:01 UTC 2010

Modified Files:
        src/usr.sbin/puffs/rump_lfs: rump_lfs.c

Log Message:
Give usage() a chance.
XXX: UKFS_DEVICE_ARGVPROBE() interface


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/puffs/rump_lfs/rump_lfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/puffs/rump_lfs/rump_lfs.c
diff -u src/usr.sbin/puffs/rump_lfs/rump_lfs.c:1.15 src/usr.sbin/puffs/rump_lfs/rump_lfs.c:1.16
--- src/usr.sbin/puffs/rump_lfs/rump_lfs.c:1.15	Tue Jan 12 18:43:37 2010
+++ src/usr.sbin/puffs/rump_lfs/rump_lfs.c	Wed Mar  3 17:37:01 2010
@@ -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);
 

Reply via email to