]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error in tramp-smb-handle-insert-directory
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 16 Oct 2017 09:35:02 +0000 (11:35 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 16 Oct 2017 09:35:02 +0000 (11:35 +0200)
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Insert size information only when FULL-DIRECTORY-P is non-nil.

lisp/net/tramp-smb.el

index 620c93828dac8b6d0ff2b71d68c231d930751f6a..f35c10b58abb362d5dab79ed6597f7d59c90eca9 100644 (file)
@@ -1073,10 +1073,11 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
             entries))
 
          ;; Insert size information.
-         (insert
-          (if avail
-              (format "total used in directory %s available %s\n" used avail)
-            (format "total %s\n" used)))
+         (when full-directory-p
+           (insert
+            (if avail
+                (format "total used in directory %s available %s\n" used avail)
+              (format "total %s\n" used))))
 
          ;; Print entries.
          (mapc