From: Robert Swiecki Date: Tue, 3 Oct 2017 16:37:34 +0000 (+0200) Subject: mount: realpath is not needed as mount will realpath the path X-Git-Tag: 1.9~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fb8b9379b3ce1e482706852e772192e708e4df0;p=platform%2Fupstream%2Fnsjail.git mount: realpath is not needed as mount will realpath the path --- diff --git a/mount.c b/mount.c index 33a4091..91c1c79 100644 --- a/mount.c +++ b/mount.c @@ -445,21 +445,6 @@ bool mountAddMountPt(struct nsjconf_t * nsjconf, const char *src, const char *ds p->dst = utilStrDup(dst); } - /* Try to canonicalize/realpath the source path if it's mount --bind */ - if (p->src && (flags & MS_BIND)) { - const char *rp = realpath(p->src, NULL); - if (rp) { - free((void *)p->src); - p->src = rp; - } else { - if (mandatory) { - PLOG_W("realpath('%s') failed", p->src); - } else { - PLOG_D("realpath('%s') failed", p->src); - } - } - } - p->fs_type = utilStrDup(fstype); p->options = utilStrDup(options); p->flags = flags;