summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-29 06:23:16 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-29 06:23:16 +0000
commit6192feac174627a9191de7c8f162f4ce78d272df (patch)
tree3bb41bb3467162ecf6fb96b266627f2367445547 /source3
parent2675fa47089e758f4ea765df6b95b8a3e5b72f72 (diff)
downloadsamba-6192feac174627a9191de7c8f162f4ce78d272df.tar.gz
samba-6192feac174627a9191de7c8f162f4ce78d272df.tar.bz2
samba-6192feac174627a9191de7c8f162f4ce78d272df.zip
don't allow ".." in service name when doing "default service"
processing. (This used to be commit 702263bba555a1d7c7999d40e5789b7e920dbce4)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index b4a1115867..bc7fb88387 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -146,7 +146,9 @@ int find_service(char *service)
if (iService < 0)
{
char *pdefservice = lp_defaultservice();
- if (pdefservice && *pdefservice && !strequal(pdefservice,service))
+ if (pdefservice && *pdefservice &&
+ !strequal(pdefservice,service) &&
+ !strstr(service,".."))
{
/*
* We need to do a local copy here as lp_defaultservice()