summaryrefslogtreecommitdiff
path: root/source4/lib/samba3/smbpasswd.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-01 00:37:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:18 -0500
commit05db3024ba6a8cd0b3182595f4f6f2f1f0987e44 (patch)
treefe8443867d7c286160f721cfc43609a1d8a41d51 /source4/lib/samba3/smbpasswd.c
parentb19cc95a88d236605425d7421909bbdf9f3daf70 (diff)
downloadsamba-05db3024ba6a8cd0b3182595f4f6f2f1f0987e44.tar.gz
samba-05db3024ba6a8cd0b3182595f4f6f2f1f0987e44.tar.bz2
samba-05db3024ba6a8cd0b3182595f4f6f2f1f0987e44.zip
r9854: Finish ldb_map testsuite
Update PLAN Some more small other fixes (This used to be commit de2bde2526ffaf521253e3b9e58fc11417986321)
Diffstat (limited to 'source4/lib/samba3/smbpasswd.c')
-rw-r--r--source4/lib/samba3/smbpasswd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/samba3/smbpasswd.c b/source4/lib/samba3/smbpasswd.c
index fe0780c8d3..baddb82545 100644
--- a/source4/lib/samba3/smbpasswd.c
+++ b/source4/lib/samba3/smbpasswd.c
@@ -228,6 +228,7 @@ NTSTATUS samba3_read_smbpasswd(const char *filename, TALLOC_CTX *ctx, struct sam
for (i = 0; i < numlines; i++) {
char *p = lines[i], *q;
+ uid_t uid;
struct samba3_samaccount *acc = &((*accounts)[*count]);
if (p[0] == '\0' || p[0] == '#')
@@ -244,7 +245,9 @@ NTSTATUS samba3_read_smbpasswd(const char *filename, TALLOC_CTX *ctx, struct sam
acc->username = talloc_strndup(ctx, p, PTR_DIFF(q, p));
p = q+1;
- acc->uid = atoi(p);
+ uid = atoi(p);
+
+ /* uid is ignored here.. */
q = strchr(p, ':');
if (!q) {