The branch, v3-5-test has been updated via a224e4c Fix bug #9034 - Typo in set_re_uid() call when USE_SETRESUID selected in configure. from 4c8fdb5 s3:vfs_gpfs: be less verbose in get/set_xattr functions
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test - Log ----------------------------------------------------------------- commit a224e4cc1dbb2578813ccffb80e88d9ec92516ce Author: Jeremy Allison <j...@samba.org> Date: Tue Jul 10 21:13:03 2012 -0700 Fix bug #9034 - Typo in set_re_uid() call when USE_SETRESUID selected in configure. Previous code only set the real euid, not the effective one. This is not a security issue as this is *only* used in the quota code, and only between code that brackets it with save_re_uid()/restore_re_uid(), Also this is not used on most platforms (we use USE_SETREUID by preference) but it's better to have this right. (cherry picked from commit ceed322622b46be3745b32a5f6a02e634bfe1789) ----------------------------------------------------------------------- Summary of changes: source3/lib/util_sec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c index d7984ac..b90a6f9 100644 --- a/source3/lib/util_sec.c +++ b/source3/lib/util_sec.c @@ -334,7 +334,7 @@ int set_re_uid(void) uid_t uid = geteuid(); #if USE_SETRESUID - setresuid(geteuid(), -1, -1); + setresuid(uid, uid, -1); #endif #if USE_SETREUID -- Samba Shared Repository