diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/service.c | 4 |
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() |