[gnome-remote-desktop] rdp-fuse-clipboard: Use notify_delete() instead of notify_inval_entry()



commit d9af7d4a71414be6f1f845df5b75319eda49c1ed
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Sun Apr 11 13:34:59 2021 +0200

    rdp-fuse-clipboard: Use notify_delete() instead of notify_inval_entry()
    
    fuse_lowlevel_notify_delete() extends
    fuse_lowlevel_notify_inval_entry() by also informing inotify watches
    that the directory entry has been deleted.
    
    So, use fuse_lowlevel_notify_delete() instead of
    fuse_lowlevel_notify_inval_entry(), since gnome-remote-desktop only
    uses this function, when clearing the selection.

 src/grd-rdp-fuse-clipboard.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/grd-rdp-fuse-clipboard.c b/src/grd-rdp-fuse-clipboard.c
index fb95ae9..9b0c1a2 100644
--- a/src/grd-rdp-fuse-clipboard.c
+++ b/src/grd-rdp-fuse-clipboard.c
@@ -127,9 +127,9 @@ invalidate_inode (gpointer data,
     {
       child = l->data;
 
-      fuse_lowlevel_notify_inval_entry (rdp_fuse_clipboard->fuse_handle,
-                                        fuse_file->ino, child->filename,
-                                        strlen (child->filename));
+      fuse_lowlevel_notify_delete (rdp_fuse_clipboard->fuse_handle,
+                                   fuse_file->ino, child->ino,
+                                   child->filename, strlen (child->filename));
     }
   g_debug ("[FUSE Clipboard] Invalidating inode %lu for file \"%s\"",
            fuse_file->ino, fuse_file->filename);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]