Module Name:    src
Committed By:   pooka
Date:           Thu Apr 16 10:05:44 UTC 2015

Modified Files:
        src/usr.bin/rump_allserver: rump_allserver.c

Log Message:
Accept 0 size for -d type=reg, it grows dynamically anyway.
(though perhaps there should be some way to limit that)


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/rump_allserver/rump_allserver.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.bin/rump_allserver/rump_allserver.c
diff -u src/usr.bin/rump_allserver/rump_allserver.c:1.38 src/usr.bin/rump_allserver/rump_allserver.c:1.39
--- src/usr.bin/rump_allserver/rump_allserver.c:1.38	Tue Nov  4 19:05:17 2014
+++ src/usr.bin/rump_allserver/rump_allserver.c	Thu Apr 16 10:05:43 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump_allserver.c,v 1.38 2014/11/04 19:05:17 pooka Exp $	*/
+/*	$NetBSD: rump_allserver.c,v 1.39 2015/04/16 10:05:43 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #include <rump/rumpuser_port.h>
 
 #ifndef lint
-__RCSID("$NetBSD: rump_allserver.c,v 1.38 2014/11/04 19:05:17 pooka Exp $");
+__RCSID("$NetBSD: rump_allserver.c,v 1.39 2015/04/16 10:05:43 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -284,7 +284,8 @@ main(int argc, char *argv[])
 			}
 
 			if (key == NULL || hostpath == NULL ||
-			    (flen == 0 && partition == 0)) {
+			    (flen == 0
+			      && partition == 0 && ftype != RUMP_ETFS_REG)) {
 				fprintf(stderr, "incomplete drivespec\n");
 				usage();
 			}

Reply via email to