mount: Check mountpoints are absolute paths.
authorRichard Jones <rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 14:00:38 +0000 (15:00 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 15:19:25 +0000 (16:19 +0100)
daemon/mount.c

index d1b26fa..f593812 100644 (file)
@@ -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) {