mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
mount: Check mountpoints are absolute paths.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user