Commit 3e232387 authored by Sam Steingold's avatar Sam Steingold
Browse files

Fixup for "no file modes on windows and dos"

* lisp/ls-lisp.el (ls-lisp-format): Keep the first group of
permissions even when `modes' is not in `ls-lisp-verbosity'.
parent a0cd986e
Pipeline #26781 failed with stages
in 54 minutes and 38 seconds
......@@ -811,7 +811,7 @@ SWITCHES and TIME-INDEX give the full switch list and time data."
(fceiling (/ file-size 1024.0)))))
(if (memq 'modes ls-lisp-verbosity)
drwxrwxrwx ; modes string
(substring drwxrwxrwx 0 1)) ; "d" or "-" for directory vs file
(substring drwxrwxrwx 0 4)) ; "d" or "-" for directory vs file
(if (memq 'links ls-lisp-verbosity)
(format "%3d" (file-attribute-link-number file-attr)))
;; Numeric uid/gid are more confusing than helpful;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment