From 192a8f9a3ec337bc9e97ab395e88ba9e1804e60b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 29 Oct 2001 13:31:01 +0000 Subject: clear errno before a call, tdbsam will not update it. just a hack to make things work. (This used to be commit fd1bc3557a7ba57a983a29d36ce0461085fb6682) --- source3/utils/pdbedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') 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"); -- cgit