summaryrefslogtreecommitdiff
path: root/source3/auth/auth_unix.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-22 12:14:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-22 12:14:28 +0000
commitdaec6cbbeee8401ef1aa0a3424ee05a3148d7ec8 (patch)
tree818ccf249203cf2ddc3d0ecd538f406b814b60b2 /source3/auth/auth_unix.c
parentc2b867038a9e4ddad987bbc6472bd9b8d42fed9d (diff)
downloadsamba-daec6cbbeee8401ef1aa0a3424ee05a3148d7ec8.tar.gz
samba-daec6cbbeee8401ef1aa0a3424ee05a3148d7ec8.tar.bz2
samba-daec6cbbeee8401ef1aa0a3424ee05a3148d7ec8.zip
Cleanups!
Make some code static, add some const to the PAM code, and make the plaintext password code actually function - particulary without the requirement to modify the 'struct passwd' (which it assumed was made up of fstrings) This kills some particularly ugly code in lib/util_pw.c Andrew Bartlett (This used to be commit 302dad4990ba5194f072e435465d9adaa089ae06)
Diffstat (limited to 'source3/auth/auth_unix.c')
-rw-r--r--source3/auth/auth_unix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c
index 69504ebb41..d624cb1261 100644
--- a/source3/auth/auth_unix.c
+++ b/source3/auth/auth_unix.c
@@ -28,7 +28,7 @@
*
* this ugly hack needs to die, but not quite yet, I think people still use it...
**/
-static BOOL update_smbpassword_file(char *user, char *password)
+static BOOL update_smbpassword_file(const char *user, const char *password)
{
SAM_ACCOUNT *sampass = NULL;
BOOL ret;
@@ -70,8 +70,6 @@ static BOOL update_smbpassword_file(char *user, char *password)
DEBUG(3,("pdb_update_sam_account returned %d\n",ret));
}
- memset(password, '\0', strlen(password));
-
pdb_free_sam(&sampass);
return ret;
}