Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/rump_allserver Accept 0 size for -d type=reg, it gro...



details:   https://anonhg.NetBSD.org/src/rev/572aa86787b1
branches:  trunk
changeset: 337480:572aa86787b1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Apr 16 10:05:43 2015 +0000

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

diffstat:

 usr.bin/rump_allserver/rump_allserver.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b2612e90c7ae -r 572aa86787b1 usr.bin/rump_allserver/rump_allserver.c
--- a/usr.bin/rump_allserver/rump_allserver.c   Thu Apr 16 08:58:44 2015 +0000
+++ b/usr.bin/rump_allserver/rump_allserver.c   Thu Apr 16 10:05:43 2015 +0000
@@ -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 @@
                        }
 
                        if (key == NULL || hostpath == NULL ||
-                           (flen == 0 && partition == 0)) {
+                           (flen == 0
+                             && partition == 0 && ftype != RUMP_ETFS_REG)) {
                                fprintf(stderr, "incomplete drivespec\n");
                                usage();
                        }



Home | Main Index | Thread Index | Old Index