mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 09:55:57 -04:00
main: use parsed upper layer directory
Use the directory in the loaded layer structure, and do not use the value passed on the CLI. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
02a3582501
commit
b31d82ff8e
2
main.c
2
main.c
@ -5878,7 +5878,7 @@ main (int argc, char *argv[])
|
||||
if (! found)
|
||||
{
|
||||
/* If the mode is missing, set a standard value. */
|
||||
ret = write_permission_xattr (&lo, get_upper_layer (&lo)->fd, lo.upperdir, 0, 0, 0555);
|
||||
ret = write_permission_xattr (&lo, get_upper_layer (&lo)->fd, get_upper_layer (&lo)->path, 0, 0, 0555);
|
||||
if (ret < 0)
|
||||
error (EXIT_FAILURE, errno, "write xattr `%s` to upperdir", name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user