Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 339550 Details for
Bug 458568
sys-fs/udisks-2 fails to mount flash drive when ACL isn't supported in kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fallback to /media if ACL is not supported
acl.patch (text/plain), 1.27 KB, created by
Ostashevskyi Viktor
on 2013-02-21 11:29:38 UTC
(
hide
)
Description:
Fallback to /media if ACL is not supported
Filename:
MIME Type:
Creator:
Ostashevskyi Viktor
Created:
2013-02-21 11:29:38 UTC
Size:
1.27 KB
patch
obsolete
>--- udiskslinuxfilesystem.c.orig 2012-12-05 17:21:57.000000000 +0100 >+++ udiskslinuxfilesystem.c 2013-02-20 12:32:54.251828861 +0100 >@@ -792,7 +792,12 @@ > acl_entry_t entry; > acl_permset_t permset; > >- acl = acl_get_file(path, ACL_TYPE_ACCESS); >+ acl = acl_get_file (path, ACL_TYPE_ACCESS); >+ >+ /* Don't set error if ACLs are not supported */ >+ if (acl == NULL && errno == ENOTSUP) >+ return ret; >+ > if (acl == NULL || > acl_create_entry (&acl, &entry) == -1 || > acl_set_tag_type (entry, ACL_USER) == -1 || >@@ -894,13 +899,19 @@ > { > if (rmdir (mount_dir) != 0) > udisks_warning ("Error calling rmdir() on %s: %m", mount_dir); >- goto out; >+ /* Fallback to default way if there was no error, that >+ * means ACLs are not supported >+ */ >+ if (*error != NULL) >+ goto out; > } > } > } > /* otherwise fall back to mounting in /media */ >- if (mount_dir == NULL) >- mount_dir = g_strdup ("/media"); >+ if (mount_dir != NULL) >+ g_free(mount_dir); >+ >+ mount_dir = g_strdup ("/media"); > > /* NOTE: UTF-8 has the nice property that valid UTF-8 strings only contains > * the byte 0x2F if it's for the '/' character (U+002F SOLIDUS).
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458568
: 339550