diff options
author | Simo Sorce <idra@samba.org> | 2001-10-29 13:31:01 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-10-29 13:31:01 +0000 |
commit | 192a8f9a3ec337bc9e97ab395e88ba9e1804e60b (patch) | |
tree | f2f631f6431be25d035a7389f0867d2b5346e2eb /source3 | |
parent | a972d2c448d0c54c0cf0319c1a0ef5fec27b68d6 (diff) | |
download | samba-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')
-rw-r--r-- | source3/utils/pdbedit.c | 2 |
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"); |