diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-01 00:37:52 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-09-01 00:37:52 +0000 |
commit | 39559ee4ad9b7431f16cb8fea6fa1ed5ecacb7d6 (patch) | |
tree | 7f1af3f863ac9ae7cef93632ec55303f5cb04f15 /source/lib/samba3/smbpasswd.c | |
parent | 3a58ee9f7e90eff6cc58a6c57298e0ea76326b4b (diff) | |
download | samba-39559ee4ad9b7431f16cb8fea6fa1ed5ecacb7d6.tar.gz samba-39559ee4ad9b7431f16cb8fea6fa1ed5ecacb7d6.tar.xz samba-39559ee4ad9b7431f16cb8fea6fa1ed5ecacb7d6.zip |
r9854: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
Diffstat (limited to 'source/lib/samba3/smbpasswd.c')
-rw-r--r-- | source/lib/samba3/smbpasswd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/samba3/smbpasswd.c b/source/lib/samba3/smbpasswd.c index fe0780c8d31..baddb82545b 100644 --- a/source/lib/samba3/smbpasswd.c +++ b/source/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) { |