mount: Check mountpoints are absolute paths.

This commit is contained in:
Richard Jones
2009-08-13 15:00:38 +01:00
parent 9f7bec212f
commit 40a0f25955

View 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) {