diff options
Diffstat (limited to 'daemon/auth.c')
-rw-r--r-- | daemon/auth.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/auth.c b/daemon/auth.c index 543d6284..a6549235 100644 --- a/daemon/auth.c +++ b/daemon/auth.c @@ -881,9 +881,15 @@ gdm_auth_user_remove (GdmDisplay *d, uid_t user) af = gdm_auth_purge (d, af, TRUE /* remove when empty */); /* Close the file and unlock it */ - if (af != NULL) + if (af != NULL) { /* FIXME: what about out of diskspace errors on errors close */ + errno = 0; VE_IGNORE_EINTR (fclose (af)); + if G_UNLIKELY (errno != 0) { + gdm_error (_("Can't write to %s: %s"), d->userauth, + strerror (errno)); + } + } XauUnlockAuth (d->userauth); |