summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <Brian.Cameron@sun.com>2010-05-19 19:12:19 -0500
committerBrian Cameron <Brian.Cameron@sun.com>2010-05-19 19:12:19 -0500
commit339074b5f872a90c4d7e543a359e1092a9303aab (patch)
tree9877bc637387ce9772ec1d2627e5e1e3e6b96ac9
parent4881e0138224315ac690c3bbdc9da0c927480109 (diff)
downloadgdm-339074b5f872a90c4d7e543a359e1092a9303aab.tar.gz
Use g_remove to remove the XAUTH_DIR instead of g_unlink, which is safer.
-rw-r--r--daemon/gdm-display-access-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-display-access-file.c b/daemon/gdm-display-access-file.c
index 1b52f153..ee42a215 100644
--- a/daemon/gdm-display-access-file.c
+++ b/daemon/gdm-display-access-file.c
@@ -270,7 +270,7 @@ _create_xauth_file_for_user (const char *username,
/* Create directory if not exist, then set permission 0711 and ownership root:gdm */
if (g_file_test (GDM_XAUTH_DIR, G_FILE_TEST_IS_DIR) == FALSE) {
- g_unlink (GDM_XAUTH_DIR);
+ g_remove (GDM_XAUTH_DIR);
if (g_mkdir (GDM_XAUTH_DIR, 0711) != 0) {
g_set_error (error,
G_FILE_ERROR,