diff options
author | Jeremy Allison <jra@samba.org> | 2002-12-28 19:48:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-12-28 19:48:56 +0000 |
commit | 561a6634b25dad6c8225ce630cc4a25466f5f6f8 (patch) | |
tree | 2df83fc6b2a865861c2aed2e7325435f21a9d276 | |
parent | 5bee95239bb1eda4d6273b6978e1c6782a23331e (diff) | |
download | samba-561a6634b25dad6c8225ce630cc4a25466f5f6f8.tar.gz samba-561a6634b25dad6c8225ce630cc4a25466f5f6f8.tar.bz2 samba-561a6634b25dad6c8225ce630cc4a25466f5f6f8.zip |
Revert by Simo's request. HEAD and 3.0 should be in sync for
this except for the modules load.
Jeremy.
(This used to be commit c7c3afbd0de8bd8797f91d350368a2419fcede0e)
-rw-r--r-- | source3/utils/pdbedit.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 773af7c79a..90ce3a6890 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -494,16 +494,8 @@ int main (int argc, char **argv) poptGetArg(pc); /* Drop argv[0], the program name */ - if (user_name == NULL) { - if (poptPeekArg(pc) == NULL) { - fprintf(stderr, "Can't use pdbedit without a username\n"); - poptPrintHelp(pc, stderr, 0); - exit(1); - } else { - /*Don't try to duplicate a null string */ - user_name = strdup(poptGetArg(pc)); - } - } + 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); |