summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-10-29 13:31:01 +0000
committerSimo Sorce <idra@samba.org>2001-10-29 13:31:01 +0000
commit192a8f9a3ec337bc9e97ab395e88ba9e1804e60b (patch)
treef2f631f6431be25d035a7389f0867d2b5346e2eb /source3/utils
parenta972d2c448d0c54c0cf0319c1a0ef5fec27b68d6 (diff)
downloadsamba-192a8f9a3ec337bc9e97ab395e88ba9e1804e60b.tar.gz
samba-192a8f9a3ec337bc9e97ab395e88ba9e1804e60b.tar.bz2
samba-192a8f9a3ec337bc9e97ab395e88ba9e1804e60b.zip
clear errno before a call, tdbsam will not update it.
just a hack to make things work. (This used to be commit fd1bc3557a7ba57a983a29d36ce0461085fb6682)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/pdbedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 6e7458fb4e..3c417eebc3 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -146,7 +146,7 @@ static int print_users_list (BOOL verbosity, BOOL smbpwdstyle)
BOOL ret;
pdb_init_sam(&sam_pwent);
-
+ errno = 0; /* testing --simo */
ret = pdb_setsampwent(False);
if (ret && errno == ENOENT) {
fprintf (stderr,"Password database not found!\n");