summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 06f4d72a40..209e4402df 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -329,10 +329,10 @@ static BOOL update_smbpassword_file(char *user, char *password)
struct smb_passwd *smbpw;
BOOL ret;
- become_root(0);
+ become_root();
smbpw = getsmbpwnam(user);
- unbecome_root(0);
-
+ unbecome_root();
+
if(smbpw == NULL) {
DEBUG(0,("getsmbpwnam returned NULL\n"));
return False;