[krb5-auth-dialog] kerberos: Handle missing G_FILE_MONITOR_EVENT_*
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] kerberos: Handle missing G_FILE_MONITOR_EVENT_*
- Date: Tue, 9 Feb 2021 12:04:53 +0000 (UTC)
commit ee750e7786916a6fc8ba1eb686a0d29688419d64
Author: Guido Günther <agx sigxcpu org>
Date: Sun Feb 7 16:54:17 2021 +0100
kerberos: Handle missing G_FILE_MONITOR_EVENT_*
This reveales some missing flags we should handle.
src/ka-kerberos.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
index 71006d6..76baf83 100644
--- a/src/ka-kerberos.c
+++ b/src/ka-kerberos.c
@@ -671,13 +671,21 @@ ccache_changed_cb (GFileMonitor *monitor G_GNUC_UNUSED,
gchar *ccache_name = g_file_get_path (file);
switch (event_type) {
- case G_FILE_MONITOR_EVENT_DELETED:
- case G_FILE_MONITOR_EVENT_CREATED:
case G_FILE_MONITOR_EVENT_CHANGED:
+ case G_FILE_MONITOR_EVENT_CREATED:
+ case G_FILE_MONITOR_EVENT_DELETED:
+ case G_FILE_MONITOR_EVENT_MOVED:
+ case G_FILE_MONITOR_EVENT_RENAMED:
KA_DEBUG ("%s changed", ccache_name);
credentials_expiring ((gpointer) applet);
g_signal_emit_by_name(applet, "krb-ccache-changed");
break;
+ case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED:
+ case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
+ case G_FILE_MONITOR_EVENT_MOVED_IN:
+ case G_FILE_MONITOR_EVENT_MOVED_OUT:
+ case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
+ case G_FILE_MONITOR_EVENT_UNMOUNTED:
default:
KA_DEBUG ("%s unhandled event: %d", ccache_name, event_type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]