The Samba-Bugzilla – Attachment 6303 Details for
Bug 8020
--acls does not honor --numeric-ids if UIDs do not match
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rsync ACL numeric-ids option patch
rsync-3.0.7-acl_numeric_ids.patch (text/plain), 612 bytes, created by
Curu Wong
on 2011-03-18 09:14:54 UTC
(
hide
)
Description:
rsync ACL numeric-ids option patch
Filename:
MIME Type:
Creator:
Curu Wong
Created:
2011-03-18 09:14:54 UTC
Size:
612 bytes
patch
obsolete
>diff -ru rsync-3.0.7.orig/acls.c rsync-3.0.7/acls.c >--- rsync-3.0.7.orig/acls.c 2011-03-18 16:33:10.000000000 +0800 >+++ rsync-3.0.7/acls.c 2011-03-18 16:37:10.000000000 +0800 >@@ -696,10 +696,14 @@ > uint32 access = recv_acl_access(&has_name, f); > > if (has_name) { >+ int id_orig = id; > if (access & NAME_IS_USER) > id = recv_user_name(f, id); > else > id = recv_group_name(f, id, NULL); >+ //don't map uid/gid when --numeric-ids option is set >+ if (numeric_ids) >+ id = id_orig; > } else if (access & NAME_IS_USER) { > if (inc_recurse && am_root && !numeric_ids) > id = match_uid(id);
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 8020
:
6303
|
6304
|
6334