diff options
author | Brian Cameron <Brian.Cameron@sun.com> | 2010-05-19 19:12:19 -0500 |
---|---|---|
committer | Brian Cameron <Brian.Cameron@sun.com> | 2010-05-19 19:12:19 -0500 |
commit | 339074b5f872a90c4d7e543a359e1092a9303aab (patch) | |
tree | 9877bc637387ce9772ec1d2627e5e1e3e6b96ac9 | |
parent | 4881e0138224315ac690c3bbdc9da0c927480109 (diff) | |
download | gdm-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.c | 2 |
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, |