From 40a0f2595515b5624ddd93cf26c4ed6383ac530e Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 13 Aug 2009 15:00:38 +0100 Subject: [PATCH] mount: Check mountpoints are absolute paths. --- daemon/mount.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 1.8.3.1