summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-18 07:20:43 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-18 07:20:43 +0000
commit9df13b92cc0afc92eaeb60efa47689642a3097bf (patch)
treee47948778206909855c8564a974fc10b7e501aae /setup_native
parent08a315be235e3bb8ad487aec661e49fd68617116 (diff)
INTEGRATION: CWS nativefixer1 (1.2.8); FILE MERGED
2004/10/28 11:46:51 obr 1.2.8.1: #i35695# patching gid of files as well
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/scripts/source/getuid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup_native/scripts/source/getuid.c b/setup_native/scripts/source/getuid.c
index 3ea265a9f9ad..9efc47f4dbbc 100644
--- a/setup_native/scripts/source/getuid.c
+++ b/setup_native/scripts/source/getuid.c
@@ -30,7 +30,10 @@ int fstat(int fildes, struct stat *buf)
dlsym (RTLD_NEXT, "fstat");
ret = (*p_fstat)(fildes, buf);
if (buf != NULL)
- buf->st_uid = 0;
+ {
+ buf->st_uid = 0; /* root */
+ buf->st_gid = 1; /* other */
+ }
return ret;
}