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
294f1153
Commit
294f1153
authored
Mar 14, 2008
by
Eli Zaretskii
Browse files
(Ffile_attributes) [WINDOWSNT]: Force inode be positive.
parent
ae0ece90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/ChangeLog
src/ChangeLog
+2
-0
src/dired.c
src/dired.c
+10
-0
No files found.
src/ChangeLog
View file @
294f1153
2008-03-14 Eli Zaretskii <eliz@gnu.org>
* dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
* w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2008-03-14 Jason Rumney <jasonr@gnu.org>
...
...
src/dired.c
View file @
294f1153
...
...
@@ -1021,7 +1021,17 @@ Elements of the attribute list are:
values
[
9
]
=
(
gid
!=
getegid
())
?
Qt
:
Qnil
;
#endif
/* BSD4_2 (or BSD4_3) */
/* Shut up GCC warnings in FIXNUM_OVERFLOW_P below. */
#ifdef WINDOWSNT
{
/* The bit-shuffling we do in w32.c:stat can turn on the MSB, which
will produce negative inode numbers. People don't like that, so
force a positive inode instead. */
unsigned
short
tem
=
s
.
st_ino
;
ino
=
tem
;
}
#else
ino
=
s
.
st_ino
;
#endif
if
(
FIXNUM_OVERFLOW_P
(
ino
))
/* To allow inode numbers larger than VALBITS, separate the bottom
16 bits. */
...
...
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