1
Description: Some file systems, such as ext2/ext3 that were created a few years ago, do not support ACLs. As long as we do not have /media on a tmpfs, ignore failures to set the ACL on /media/<user> and fall back to chowning the directory to the target user.
2
Bug-Ubuntu: https://launchpad.net/bugs/1048059
4
Index: udisks2/src/udiskslinuxfilesystem.c
5
===================================================================
6
--- udisks2.orig/src/udiskslinuxfilesystem.c 2012-11-23 07:10:50.492659403 +0100
7
+++ udisks2/src/udiskslinuxfilesystem.c 2012-11-23 07:11:45.068662045 +0100
9
acl_calc_mask (&acl) == -1 ||
10
acl_set_file (path, ACL_TYPE_ACCESS, acl) == -1)
14
- g_io_error_from_errno (errno),
16
"Adding read ACL for uid %d to `%s' failed: %m",
19
+ chown(path, uid, -1);