summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-20 23:07:36 +0000
committerJeremy Allison <jra@samba.org>2001-03-20 23:07:36 +0000
commitbeec1ea8291c9c2b12745d37ffe307dd4e3bd6ec (patch)
tree5cefe9d779e5f11b398c8029796053ddfc61aceb /source3/smbd
parent344fb49fbf4df55492bfa9cc1aee2d8210c32ca6 (diff)
downloadsamba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.tar.gz
samba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.tar.bz2
samba-beec1ea8291c9c2b12745d37ffe307dd4e3bd6ec.zip
Fix for crash when doing name lookup with a quoted string. Part of
lookup_name was expecting to be able to write to the string. Changed lookup_name to use const. Jeremy. (This used to be commit 80c18d88491f1148ade623e81c33f84ba4f952f3)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/uid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 3d37021fff..02522a37a2 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -266,7 +266,7 @@ void unbecome_root(void)
Tries winbind first - then uses local lookup.
*****************************************************************/
-BOOL lookup_name(char *name, DOM_SID *psid, enum SID_NAME_USE *name_type)
+BOOL lookup_name(const char *name, DOM_SID *psid, enum SID_NAME_USE *name_type)
{
extern pstring global_myname;
extern fstring global_myworkgroup;
@@ -302,7 +302,6 @@ BOOL lookup_name(char *name, DOM_SID *psid, enum SID_NAME_USE *name_type)
ret = local_lookup_name(domain, username, psid,
name_type);
} else {
-
ret = local_lookup_name(global_myname, name, psid,
name_type);
}