From 0f8e10868621174d1dc987505515a7e44464327c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Oct 2002 19:25:04 +0000 Subject: I was somewhat annoyed by 'pdbedit -a vl' spitting an error message at me :-) Volker (This used to be commit c4452ef22cf63c73bfb3574a55a4810af511ff20) --- source3/utils/pdbedit.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 0151b6b153..1199dec7fb 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -492,7 +492,13 @@ int main (int argc, char **argv) break; } } - + + poptGetArg(pc); /* Drop argv[0], the program name */ + + if (user_name == NULL) { + user_name = poptGetArg(pc); + } + if (!lp_load(dyn_CONFIGFILE,True,False,False)) { fprintf(stderr, "Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE); exit(1); -- cgit