summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2002-10-21 19:25:04 +0000
committerVolker Lendecke <vlendec@samba.org>2002-10-21 19:25:04 +0000
commit0f8e10868621174d1dc987505515a7e44464327c (patch)
tree9230dceda964da077d21be78cc864b8831aa0d51 /source3/utils
parentc6e4a84cfaa9cf0909a1cd22f7e52112fbf2084b (diff)
downloadsamba-0f8e10868621174d1dc987505515a7e44464327c.tar.gz
samba-0f8e10868621174d1dc987505515a7e44464327c.tar.bz2
samba-0f8e10868621174d1dc987505515a7e44464327c.zip
I was somewhat annoyed by 'pdbedit -a vl' spitting an error message
at me :-) Volker (This used to be commit c4452ef22cf63c73bfb3574a55a4810af511ff20)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/pdbedit.c8
1 files changed, 7 insertions, 1 deletions
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);