commit fdf56b7881c09578fadbf483e96912ccdfa1ff37
parent 2e3c2eaf6479d04ef5e64fe6bdfc6bd78abdc663
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date: Sat, 12 Jun 2010 16:31:56 +0200
fix -n arguments handling
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -162,6 +162,11 @@ main(int argc, char **argv)
nettap = 1;
netdev = ARGF();
}
+ if(netdev != 0 && netdev[0] == '-'){
+ netdev = nil;
+ argc++;
+ *argv--;
+ }
break;
case 'm':
vether = 1;