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
d710de41
Commit
d710de41
authored
Sep 08, 1999
by
Richard M. Stallman
Browse files
(tar-header-block-tokenize):
Use `when' instead of `and'. Fix some clobbered text.
parent
8261aae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lisp/tar-mode.el
lisp/tar-mode.el
+8
-4
No files found.
lisp/tar-mode.el
View file @
d710de41
...
...
@@ -246,10 +246,14 @@ write-date, checksum, link-type, and link-name."
(
uname-valid-p
(
or
(
string=
"ustar "
magic-str
)
(
string=
"GNUtar "
magic-str
)))
name
linkname
(
nulsexp
"[^\000]*\000"
))
(
and
(
string-match
nulsexp
string
tar-name-offset
)
(
setq
name-end
(
min
name-end
(
1-
(
match-end
0
)))))
(
and
(
string-match
nulsexp
string
tar-link-offset
)
(
setq
link-end
(
min
link-end
(
1-
(
match-end
0
)))))
(
and
(
string-match
nulsexp
string
tar-uname-offset
)
(
setq
uname-end
(
min
uname-end
(
1-
(
match-end
0
)))))
(
and
(
string-match
nulsexp
string
tar-gname-offset
)
(
slibjwc_f-1.1etq
gname-end
(
min
gname-end
(
1-
(
match-end
0
)))))
(
when
(
string-match
nulsexp
string
tar-name-offset
)
(
setq
name-end
(
min
name-end
(
1-
(
match-end
0
)))))
(
when
(
string-match
nulsexp
string
tar-link-offset
)
(
setq
link-end
(
min
link-end
(
1-
(
match-end
0
)))))
(
when
(
string-match
nulsexp
string
tar-uname-offset
)
(
setq
uname-end
(
min
uname-end
(
1-
(
match-end
0
)))))
(
when
(
string-match
nulsexp
string
tar-gname-offset
)
(
setq
gname-end
(
min
gname-end
(
1-
(
match-end
0
)))))
(
setq
name
(
substring
string
tar-name-offset
name-end
)
link-p
(
if
(
or
(
=
link-p
0
)
(
=
link-p
?0
))
nil
...
...
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