Get default fsuid and fsgid from getuid and getgid

This commit is contained in:
wbaumann 2012-01-15 21:16:39 +00:00
parent af0e0b57c7
commit 24bdeb9e65
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,8 @@ ChangeLog for davfs2
* mount_davfs.c, kernel_interface.c: * mount_davfs.c, kernel_interface.c:
Check for _POSIX_SAVED_IDS, Check for _POSIX_SAVED_IDS,
add gain_privileges and release_privileges. add gain_privileges and release_privileges.
* mount_davfs, get_options:
Get default fsuid and fsgid from getuid and getgid.


2012-01-14 Werner Baumann (werner.baumann@onlinehome.de) 2012-01-14 Werner Baumann (werner.baumann@onlinehome.de)
* src/Makefile.am: * src/Makefile.am:

View File

@ -1668,8 +1668,8 @@ get_options(dav_args *args, char *option)
} else { } else {
args->mopts = DAV_MOPTS; args->mopts = DAV_MOPTS;
} }
args->fsuid = args->uid; args->fsuid = getuid();
args->fsgid = args->gid; args->fsgid = getgid();


int so; int so;