From: Richard Jones Date: Thu, 13 Aug 2009 14:00:38 +0000 (+0100) Subject: mount: Check mountpoints are absolute paths. X-Git-Tag: 1.0.67~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=40a0f2595515b5624ddd93cf26c4ed6383ac530e;p=libguestfs.git mount: Check mountpoints are absolute paths. --- diff --git a/daemon/mount.c b/daemon/mount.c index d1b26fa..f593812 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -48,6 +48,8 @@ do_mount_vfs (const char *options, const char *vfstype, char *mp; char *error; + ABS_PATH (mountpoint, return -1); + is_root = strcmp (mountpoint, "/") == 0; if (!root_mounted && !is_root) {