]> code.delx.au - gnu-emacs/blobdiff - lisp/net/tramp-gvfs.el
Fix Bug#22452
[gnu-emacs] / lisp / net / tramp-gvfs.el
index e19ceae89da59688b24091f75fa33b001e1b654c..dee8333e5477ccf83fb85593ca993020a7da4dcb 100644 (file)
@@ -1617,7 +1617,11 @@ connection if a previous connection has died for some reason."
        ;; is marked with the fuse-mountpoint "/".  We shall react.
        (when (string-equal
               (tramp-get-file-property vec "/" "fuse-mountpoint" "") "/")
-         (tramp-error vec 'file-error "FUSE mount denied")))))
+         (tramp-error vec 'file-error "FUSE mount denied"))
+
+       ;; Mark it as connected.
+       (tramp-set-connection-property
+        (tramp-get-connection-process vec) "connected" t))))
 
   ;; In `tramp-check-cached-permissions', the connection properties
   ;; {uig,gid}-{integer,string} are used.  We set them to their local