summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-08 15:24:01 +0000
committerGerald Carter <jerry@samba.org>2003-09-08 15:24:01 +0000
commite56192d0cff52a6976d75e5c2b8c25f89f5879c6 (patch)
tree7e5ebe3c35b07901e2e01259c027ececdd9943b3
parenta82d43d4dfdae8f1e93be8f52a5490162b7774e6 (diff)
downloadsamba-e56192d0cff52a6976d75e5c2b8c25f89f5879c6.tar.gz
samba-e56192d0cff52a6976d75e5c2b8c25f89f5879c6.tar.bz2
samba-e56192d0cff52a6976d75e5c2b8c25f89f5879c6.zip
make sure we substitute basic variables in read/write list
(This used to be commit 52bea54d35e7fb32c7ed7b067c13afe53761affb)
-rw-r--r--source3/smbd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index f9f264c270..70126b9e7f 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -273,7 +273,7 @@ static void set_read_only(connection_struct *conn, gid_t *groups, size_t n_group
str_list_copy(&list, lp_readlist(conn->service));
if (list) {
- if (!str_list_substitute(list, "%S", service)) {
+ if ( !str_list_sub_basic(list, current_user_info.smb_name) ) {
DEBUG(0, ("ERROR: read list substitution failed\n"));
}
if (user_in_list(conn->user, (const char **)list, groups, n_groups))
@@ -283,7 +283,7 @@ static void set_read_only(connection_struct *conn, gid_t *groups, size_t n_group
str_list_copy(&list, lp_writelist(conn->service));
if (list) {
- if (!str_list_substitute(list, "%S", service)) {
+ if ( !str_list_sub_basic(list, current_user_info.smb_name) ) {
DEBUG(0, ("ERROR: write list substitution failed\n"));
}
if (user_in_list(conn->user, (const char **)list, groups, n_groups))