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
7412d429
Commit
7412d429
authored
May 03, 2008
by
Eli Zaretskii
Browse files
(Ffile_attributes): Don't allow the device number become negative.
parent
83affd96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/dired.c
src/dired.c
+5
-2
No files found.
src/ChangeLog
View file @
7412d429
2008-05-03 Eli Zaretskii <eliz@gnu.org>
* dired.c (Ffile_attributes): Don't allow the device number become
negative.
2008-05-02 Daiki Ueno <ueno@unixuser.org>
* Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
...
...
src/dired.c
View file @
7412d429
...
...
@@ -1048,8 +1048,11 @@ Elements of the attribute list are:
make_number
(
low_ino
&
0xffff
)));
}
/* Likewise for device. */
if
(
FIXNUM_OVERFLOW_P
(
s
.
st_dev
))
/* Likewise for device, but don't let it become negative. We used
to use FIXNUM_OVERFLOW_P here, but that won't catch large
positive numbers such as 0xFFEEDDCC. */
if
((
EMACS_INT
)
s
.
st_dev
<
0
||
(
EMACS_INT
)
s
.
st_dev
>
MOST_POSITIVE_FIXNUM
)
values
[
11
]
=
Fcons
(
make_number
(
s
.
st_dev
>>
16
),
make_number
(
s
.
st_dev
&
0xffff
));
else
...
...
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