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 | fd1bc3557a7ba57a983a29d36ce0461085fb6682 (patch) | |
tree | 96f6ebb500581e54423adde40c382e76a0346930 | |
parent | 92f953c156a39b54230c52c6102a319a4a5ca798 (diff) | |
download | samba-fd1bc3557a7ba57a983a29d36ce0461085fb6682.tar.gz samba-fd1bc3557a7ba57a983a29d36ce0461085fb6682.tar.xz samba-fd1bc3557a7ba57a983a29d36ce0461085fb6682.zip |
clear errno before a call, tdbsam will not update it.
just a hack to make things work.
-rw-r--r-- | source/utils/pdbedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/pdbedit.c b/source/utils/pdbedit.c index 6e7458fb4e9..3c417eebc33 100644 --- a/source/utils/pdbedit.c +++ b/source/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"); |