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