Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7b4a3608
Commit
7b4a3608
authored
Jan 06, 1994
by
Richard M. Stallman
Browse files
(ls-lisp-format): Bad format for uid and gid fixed.
parent
35f7e85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/ls-lisp.el
lisp/ls-lisp.el
+3
-3
No files found.
lisp/ls-lisp.el
View file @
7b4a3608
...
...
@@ -185,14 +185,14 @@ The switches that work are: A a c i r S s t u"
;; Emacs should be able to make strings of them.
;; user-login-name and user-full-name could take an
;; optional arg.
(
format
" %3d %
-8d %-8d
%8d "
(
format
" %3d %
8s %8s
%8d "
(
nth
1
file-attr
)
; no. of links
(
if
(
=
(
user-uid
)
(
nth
2
file-attr
))
(
user-login-name
)
(
nth
2
file-attr
))
; uid
(
int-to-string
(
nth
2
file-attr
))
)
; uid
(
if
(
eq
system-type
'ms-dos
)
"root"
; everything is root on MSDOS.
(
nth
3
file-attr
))
; gid
(
int-to-string
(
nth
3
file-attr
))
)
; gid
(
nth
7
file-attr
)
; size in bytes
)
(
ls-lisp-format-time
file-attr
switches
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment