The Samba-Bugzilla – Attachment 590 Details for
Bug 1040
Missing feature in recycle.so - create mask on directorys
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch Implementing a directory_mode option for vfs_recycle
recycle_patch_20040730 (text/plain), 867 bytes, created by
Renaud Duhaut
on 2004-07-30 14:52:14 UTC
(
hide
)
Description:
patch Implementing a directory_mode option for vfs_recycle
Filename:
MIME Type:
Creator:
Renaud Duhaut
Created:
2004-07-30 14:52:14 UTC
Size:
867 bytes
patch
obsolete
>--- vfs_recycle.c.orig 2004-07-20 18:28:08.000000000 +0200 >+++ vfs_recycle.c 2004-07-30 16:07:23.000000000 +0200 >@@ -153,6 +153,23 @@ > return maxsize; > } > >+static mode_t recycle_directory_mode(vfs_handle_struct *handle) >+{ >+ mode_t dirmode; >+ const char *buff; >+ >+ buff = lp_parm_const_string(SNUM(handle->conn), "recycle", "directory_mode", NULL); >+ >+ if (buff != NULL ) >+ sscanf(buff, "%o", (int *)&dirmode); >+ else >+ dirmode=S_IRUSR | S_IWUSR | S_IXUSR; >+ >+ DEBUG(10, ("recycle: directory_mode = %o\n", dirmode)); >+ >+ return dirmode; >+} >+ > static BOOL recycle_directory_exist(vfs_handle_struct *handle, const char *dname) > { > SMB_STRUCT_STAT st; >@@ -213,7 +230,7 @@ > char *tok_str; > BOOL ret = False; > >- mode = S_IRUSR | S_IWUSR | S_IXUSR; >+ mode = recycle_directory_mode(handle); > > tmp_str = strdup(dname); > ALLOC_CHECK(tmp_str, done);
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 1040
: 590