diff options
author | Luke Leighton <lkcl@samba.org> | 1999-07-14 19:21:44 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-07-14 19:21:44 +0000 |
commit | 80d36778432d42eb265ed9428f27a27250ba5e08 (patch) | |
tree | 049bb5e92339b05f061be31dc1949a191fe7240a /source/passdb/smbpass.c | |
parent | 4bdff2748956a61f12a92e19a9af98c7b9668e8f (diff) | |
download | samba-80d36778432d42eb265ed9428f27a27250ba5e08.tar.gz samba-80d36778432d42eb265ed9428f27a27250ba5e08.tar.xz samba-80d36778432d42eb265ed9428f27a27250ba5e08.zip |
code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file".
Copyright 1999 Bertl <bp@vpnet.at>
Diffstat (limited to 'source/passdb/smbpass.c')
-rw-r--r-- | source/passdb/smbpass.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c index e7adbe6d458..e3c6a5da441 100644 --- a/source/passdb/smbpass.c +++ b/source/passdb/smbpass.c @@ -120,6 +120,12 @@ struct smb_passwd *getsmbfilepwent(void *vp) */ p = strncpyn(unix_name, linebuf, sizeof(unix_name), ':'); + if (p == NULL) + { + DEBUG(0,("getsmbfilepwent: no ':' separator found\n")); + continue; + } + /* Go past ':' */ p++; |