1.1 --- a/libfsserver/lib/files/ext2_file_operations.cc Thu Sep 15 18:47:12 2022 +0200
1.2 +++ b/libfsserver/lib/files/ext2_file_operations.cc Thu Sep 15 18:50:13 2022 +0200
1.3 @@ -101,7 +101,7 @@
1.4 return -L4_EIO;
1.5
1.6 if (!access_can_write(user, &inode_parent))
1.7 - return -L4_EPERM;
1.8 + return -L4_EACCESS;
1.9
1.10 if (image_create_file(_fs, ino_parent, filename, 0666 & ~user.umask,
1.11 user.uid, user.gid, ino))
1.12 @@ -142,7 +142,7 @@
1.13 /* Test for permission to create the directory. */
1.14
1.15 if (!can_access(user, O_WRONLY, ino_parent))
1.16 - return -L4_EPERM;
1.17 + return -L4_EACCESS;
1.18
1.19 /* Make the directory. */
1.20