[SCM] Samba Shared Repository - branch master updated -
5318e73e93295cbdd2e50c4291b58a317cb09ea6
Karolin Seeger
kseeger at samba.org
Mon Jan 5 10:08:24 GMT 2009
The branch, master has been updated
via 5318e73e93295cbdd2e50c4291b58a317cb09ea6 (commit)
from beb8b8fc2d02295e81def260d2449fb393bab259 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 5318e73e93295cbdd2e50c4291b58a317cb09ea6
Author: Michael Adam <obnox at samba.org>
Date: Thu Dec 18 18:01:55 2008 +0100
smbd: prevent access to root filesystem when connecting with empty service name
This only applies to a setup with "registry shares = yes"
Michael
(cherry picked from commit 288fa94ac7cfdf7457b5098c33fc840bed3d5410)
(cherry picked from commit e85526b184e66f86b7faa9d0a37288a09c12c19e)
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/service.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 0dea615..e90098f 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -235,6 +235,10 @@ static int load_registry_service(const char *servicename)
return -1;
}
+ if ((servicename == NULL) || (*servicename == '\0')) {
+ return -1;
+ }
+
if (strequal(servicename, GLOBAL_NAME)) {
return -2;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list