The Samba-Bugzilla – Attachment 8742 Details for
Bug 9775
Panic action script called at windows 7 session login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.6
9775-3.6.patch (text/plain), 2.03 KB, created by
Volker Lendecke
on 2013-04-09 19:55:14 UTC
(
hide
)
Description:
Patch for 3.6
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2013-04-09 19:55:14 UTC
Size:
2.03 KB
patch
obsolete
>From 3e1f50e853d0f4ea06380d912ab599925c006e2b Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Tue, 9 Apr 2013 21:43:28 +0200 >Subject: [PATCH] vfs_fake_perms: Fix bug 9775, segfault for "artificial" conn_structs > >--- > source3/modules/vfs_fake_perms.c | 30 ++++++++++++++++++++++++++---- > 1 files changed, 26 insertions(+), 4 deletions(-) > >diff --git a/source3/modules/vfs_fake_perms.c b/source3/modules/vfs_fake_perms.c >index ade2407..9956a3d 100644 >--- a/source3/modules/vfs_fake_perms.c >+++ b/source3/modules/vfs_fake_perms.c >@@ -29,6 +29,8 @@ > #undef DBGC_CLASS > #define DBGC_CLASS DBGC_VFS > >+extern struct current_user current_user; >+ > static int fake_perms_stat(vfs_handle_struct *handle, > struct smb_filename *smb_fname) > { >@@ -41,8 +43,18 @@ static int fake_perms_stat(vfs_handle_struct *handle, > } else { > smb_fname->st.st_ex_mode = S_IRWXU; > } >- smb_fname->st.st_ex_uid = handle->conn->session_info->utok.uid; >- smb_fname->st.st_ex_gid = handle->conn->session_info->utok.gid; >+ if (handle->conn->session_info != NULL) { >+ smb_fname->st.st_ex_uid = >+ handle->conn->session_info->utok.uid; >+ smb_fname->st.st_ex_gid = >+ handle->conn->session_info->utok.gid; >+ } else { >+ /* >+ * Sucks, but current_user is the best we can do here. >+ */ >+ smb_fname->st.st_ex_uid = current_user.ut.uid; >+ smb_fname->st.st_ex_gid = current_user.ut.gid; >+ } > } > > return ret; >@@ -59,8 +71,18 @@ static int fake_perms_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_ST > } else { > sbuf->st_ex_mode = S_IRWXU; > } >- sbuf->st_ex_uid = handle->conn->session_info->utok.uid; >- sbuf->st_ex_gid = handle->conn->session_info->utok.gid; >+ if (handle->conn->session_info != NULL) { >+ sbuf->st_ex_uid = >+ handle->conn->session_info->utok.uid; >+ sbuf->st_ex_gid = >+ handle->conn->session_info->utok.gid; >+ } else { >+ /* >+ * Sucks, but current_user is the best we can do here. >+ */ >+ sbuf->st_ex_uid = current_user.ut.uid; >+ sbuf->st_ex_gid = current_user.ut.gid; >+ } > } > return ret; > } >-- >1.7.3.4 >
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
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 9775
:
8740
|
8741
| 8742