From 339074b5f872a90c4d7e543a359e1092a9303aab Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Wed, 19 May 2010 19:12:19 -0500 Subject: Use g_remove to remove the XAUTH_DIR instead of g_unlink, which is safer. --- daemon/gdm-display-access-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.1