vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit cee74110d2165b89ab27886dba2bb07cded7b4d9
parent 84901cf1666059b1b49109a17a4d660f979d5102
Author: yiyus <none@none>
Date:   Sun, 30 May 2010 13:14:56 +0200

command line args overwrite .ini file options

Diffstat:
src/9vx/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/9vx/main.c b/src/9vx/main.c @@ -344,9 +344,9 @@ iniopt(char *name, char *value) bootboot = 1; else if(strcmp(name, "initrc") == 0) initrc = 1; - else if(strcmp(name, "localroot") == 0) + else if(strcmp(name, "localroot") == 0 && !localroot) localroot = value; - else if(strcmp(name, "user") == 0) + else if(strcmp(name, "user") == 0 && !username) username = value; else if(strcmp(name, "usetty") == 0) usetty = 1;