emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 2f37eca: Fix Bug#32325


From: Michael Albinus
Subject: [Emacs-diffs] master 2f37eca: Fix Bug#32325
Date: Wed, 1 Aug 2018 17:09:38 -0400 (EDT)

branch: master
commit 2f37ecaefcc61b0bf389f1c1eb3ac1b15105f056
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Fix Bug#32325
    
    * lisp/net/tramp-sh.el (tramp-sh-handle-make-directory): In case
    of PARENTS flush also upper directories caches.  (Bug#32325)
---
 lisp/net/tramp-sh.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 2d25350..86e82d4 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2547,7 +2547,11 @@ The method used must be an out-of-band method."
   "Like `make-directory' for Tramp files."
   (setq dir (expand-file-name dir))
   (with-parsed-tramp-file-name dir nil
-    (tramp-flush-directory-properties v (file-name-directory localname))
+    ;; When PARENTS is non-nil, DIR could be a chain of non-existent
+    ;; directories a/b/c/...  Instead of checking, we simply flush the
+    ;; whole cache.
+    (tramp-flush-directory-properties
+     v (if parents "/" (file-name-directory localname)))
     (save-excursion
       (tramp-barf-unless-okay
        v (format "%s %s"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]