The Samba-Bugzilla – Attachment 4954 Details for
Bug 6891
using windows explorer to change ownership on a folder fails with Bad File Descriptor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for 3.4.4.
look (text/plain), 711 bytes, created by
Jeremy Allison
on 2009-11-12 15:05:45 UTC
(
hide
)
Description:
Fix for 3.4.4.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-11-12 15:05:45 UTC
Size:
711 bytes
patch
obsolete
>diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c >index 26e609f..15ea4d5 100644 >--- a/source3/smbd/posix_acls.c >+++ b/source3/smbd/posix_acls.c >@@ -3594,7 +3594,17 @@ int try_chown(connection_struct *conn, struct smb_filename *smb_fname, > > become_root(); > /* Keep the current file gid the same. */ >- ret = SMB_VFS_FCHOWN(fsp, uid, (gid_t)-1); >+ if (fsp->fh->fd == -1) { >+ if (lp_posix_pathnames()) { >+ ret = SMB_VFS_LCHOWN(conn, smb_fname->base_name, uid, >+ (gid_t)-1); >+ } else { >+ ret = SMB_VFS_CHOWN(conn, smb_fname->base_name, uid, >+ (gid_t)-1); >+ } >+ } else { >+ ret = SMB_VFS_FCHOWN(fsp, uid, (gid_t)-1); >+ } > unbecome_root(); > > close_file_fchmod(NULL, fsp);
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 6891
: 4954