Use stored persona
This commit is contained in:
parent
3e6d34f275
commit
fef2a85f3d
@ -1,6 +1,10 @@
|
||||
ChangeLog for davfs2
|
||||
--------------------
|
||||
|
||||
2012-01-24 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* mount_davfs.c, check_mountpoint:
|
||||
Used stored persona.
|
||||
|
||||
2012-01-22 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* mount_davfs.c:
|
||||
Add function expand_home.
|
||||
|
@ -762,15 +762,8 @@ check_fstab(const dav_args *args)
|
||||
static void
|
||||
check_mountpoint(dav_args *args)
|
||||
{
|
||||
|
||||
struct passwd *pw;
|
||||
|
||||
if (args->relative_mpoint && !args->privileged) {
|
||||
pw = getpwuid(getuid());
|
||||
if (!pw || !pw->pw_dir)
|
||||
error(EXIT_FAILURE, 0,
|
||||
_("can't get home directory for uid %i"), getuid());
|
||||
if (strstr(mpoint, pw->pw_dir) != mpoint)
|
||||
if (strstr(mpoint, args->home) != mpoint)
|
||||
error(EXIT_FAILURE, 0, _("A relative mount point must lie "
|
||||
"within your home directory"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user