mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
don't allow ".." in service name when doing "default service"
processing. (This used to be commit 702263bba555a1d7c7999d40e5789b7e920dbce4)
This commit is contained in:
parent
2675fa4708
commit
6192feac17
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user