rpms/gdm/devel gdm-2.26.0-clean-up-auth-entries.patch, NONE, 1.1 gdm.spec, 1.454, 1.455
Ray Strode
rstrode at fedoraproject.org
Tue Mar 17 18:32:50 UTC 2009
Author: rstrode
Update of /cvs/pkgs/rpms/gdm/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14915
Modified Files:
gdm.spec
Added Files:
gdm-2.26.0-clean-up-auth-entries.patch
Log Message:
- Clean up empty auth dirs so they don't hang around forever
(bug 485974)
gdm-2.26.0-clean-up-auth-entries.patch:
--- NEW FILE gdm-2.26.0-clean-up-auth-entries.patch ---
--- a/daemon/gdm-display-access-file.c (revision 6783)
+++ b/daemon/gdm-display-access-file.c (working copy)
@@ -220,6 +220,31 @@ _get_uid_and_gid_for_user (const char *u
return TRUE;
}
+static void
+clean_up_stale_auth_subdirs (void)
+{
+ GDir *dir;
+ const char *filename;
+
+ dir = g_dir_open (GDM_XAUTH_DIR, 0, NULL);
+
+ if (dir == NULL) {
+ return;
+ }
+
+ while ((filename = g_dir_read_name (dir)) != NULL) {
+ char *path;
+
+ path = g_build_filename (GDM_XAUTH_DIR, filename, NULL);
+
+ /* Will only succeed if the directory is empty
+ */
+ g_rmdir (path);
+ g_free (path);
+ }
+ g_dir_close (dir);
+}
+
static FILE *
_create_xauth_file_for_user (const char *username,
char **filename,
@@ -262,6 +287,9 @@ _create_xauth_file_for_user (const char
} else {
/* if it does exist make sure it has correct mode 01775 */
g_chmod (GDM_XAUTH_DIR, S_ISVTX | S_IRWXU |S_IRWXG | S_IROTH | S_IXOTH);
+
+ /* and clean up any stale auth subdirs */
+ clean_up_stale_auth_subdirs ();
}
if (!_get_uid_and_gid_for_user (username, &uid, &gid)) {
Index: gdm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdm/devel/gdm.spec,v
retrieving revision 1.454
retrieving revision 1.455
diff -u -r1.454 -r1.455
--- gdm.spec 16 Mar 2009 18:42:49 -0000 1.454
+++ gdm.spec 17 Mar 2009 18:32:19 -0000 1.455
@@ -15,7 +15,7 @@
Summary: The GNOME Display Manager
Name: gdm
Version: 2.26.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPLv2+
Group: User Interface/X
@@ -94,7 +94,9 @@
Patch15: gdm-2.25.2-start-faster.patch
Patch16: gdm-2.25.2-dont-depend-on-hostname.patch
-Patch17: gdm-2.25.2-maybe-work-around-gcc-bug.patch
+
+# http://bugzilla.redhat.com/show_bug.cgi?id=485974
+Patch17: gdm-2.26.0-clean-up-auth-entries.patch
# Fedora-specific
Patch99: gdm-2.23.1-fedora-logo.patch
@@ -124,7 +126,7 @@
%patch14 -p1 -b .multistack-but-boring
%patch15 -p1 -b .start-faster
%patch16 -p1 -b .dont-depend-on-hostname
-#%patch17 -p1 -b .maybe-work-around-gcc-bug
+%patch17 -p1 -b .clean-up-auth-entries
%patch99 -p1 -b .fedora-logo
@@ -348,6 +350,10 @@
%{_datadir}/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
%changelog
+* Mon Mar 16 2009 Ray Strode <rstrode at redhat.com> - 1:2.26.0-2
+- Clean up empty auth dirs so they don't hang around forever
+ (bug 485974)
+
* Mon Mar 16 2009 Ray Strode <rstrode at redhat.com> - 1:2.26.0-1
- Update to 2.26.0
- Drop gcc workaround. it might not be needed now.
More information about the fedora-extras-commits
mailing list