Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 624256 Details for
Bug 864613
Authorization list comes out in wrong order in PolicyKit local authority
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
sort filenames before iterating over them
polkit-0.96-sort-filenames.patch (text/plain), 1.04 KB, created by
jared jennings
on 2012-10-09 20:27:37 UTC
(
hide
)
Description:
sort filenames before iterating over them
Filename:
MIME Type:
Creator:
jared jennings
Created:
2012-10-09 20:27:37 UTC
Size:
1.04 KB
patch
obsolete
>diff -ru polkit-0.96-reverse-fix/src/polkitbackend/polkitbackendlocalauthorizationstore.c polkit-0.96-sort-filenames/src/polkitbackend/polkitbackendlocalauthorizationstore.c >--- polkit-0.96-reverse-fix/src/polkitbackend/polkitbackendlocalauthorizationstore.c 2012-10-09 14:57:07.593298580 -0500 >+++ polkit-0.96-sort-filenames/src/polkitbackend/polkitbackendlocalauthorizationstore.c 2012-10-09 14:58:55.487396354 -0500 >@@ -515,6 +515,22 @@ > return store; > } > >+static gint >+compare_filename_reverse (GFile *a, GFile *b) >+{ >+ gchar *a_uri; >+ gchar *b_uri; >+ gint ret; >+ >+ a_uri = g_file_get_uri (a); >+ b_uri = g_file_get_uri (b); >+ >+ /* TODO: use ASCII sort function? */ >+ ret = g_strcmp0 (a_uri, b_uri); >+ >+ return ret; >+} >+ > static void > polkit_backend_local_authorization_store_purge (PolkitBackendLocalAuthorizationStore *store) > { >@@ -583,6 +599,8 @@ > goto out; > } > >+ files = g_list_sort (files, (GCompareFunc) compare_filename_reverse); >+ > /* process files; highest priority comes first */ > for (l = files; l != NULL; l = l->next) > {
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 864613
:
624219
|
624255
|
624256
|
744858