The Samba-Bugzilla – Attachment 4751 Details for
Bug 6763
CVE-2009-2813 - Misconfigured /etc/passwd file may share folders unexpectedly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Samba 3.4.1 patch
samba-3-4-1.patch (text/plain), 1.42 KB, created by
Jeremy Allison
on 2009-09-25 20:13:53 UTC
(
hide
)
Description:
Samba 3.4.1 patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-09-25 20:13:53 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c >index 72c9950..4bd48ab 100644 >--- a/source3/param/loadparm.c >+++ b/source3/param/loadparm.c >@@ -6095,6 +6095,11 @@ bool lp_add_home(const char *pszHomename, int iDefaultService, > { > int i; > >+ if (pszHomename == NULL || user == NULL || pszHomedir == NULL || >+ pszHomedir[0] == '\0') { >+ return false; >+ } >+ > i = add_a_service(ServicePtrs[iDefaultService], pszHomename); > > if (i < 0) >@@ -8066,7 +8071,7 @@ static void lp_add_auto_services(char *str) > > home = get_user_home_dir(talloc_tos(), p); > >- if (home && homes >= 0) >+ if (home && home[0] && homes >= 0) > lp_add_home(p, homes, p, home); > > TALLOC_FREE(home); >diff --git a/source3/smbd/service.c b/source3/smbd/service.c >index fc59744..902a7c4 100644 >--- a/source3/smbd/service.c >+++ b/source3/smbd/service.c >@@ -56,6 +56,10 @@ bool set_conn_connectpath(connection_struct *conn, const char *connectpath) > const char *s = connectpath; > bool start_of_name_component = true; > >+ if (connectpath == NULL || connectpath[0] == '\0') { >+ return false; >+ } >+ > destname = SMB_STRDUP(connectpath); > if (!destname) { > return false; >@@ -259,7 +263,7 @@ int add_home_service(const char *service, const char *username, const char *home > { > int iHomeService; > >- if (!service || !homedir) >+ if (!service || !homedir || homedir[0] == '\0') > return -1; > > if ((iHomeService = lp_servicenumber(HOMES_NAME)) < 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6763
:
4748
|
4749
|
4750
| 4751