diff --git a/ChangeLog b/ChangeLog index 5f47a39..425bc81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/src/mount_davfs.c b/src/mount_davfs.c index fe6ad5d..e0e389a 100644 --- a/src/mount_davfs.c +++ b/src/mount_davfs.c @@ -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")); }