aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2008-04-05 19:10:08 +0000
committerEli Zaretskii2008-04-05 19:10:08 +0000
commitf3a3640be894d647b4f27d04e2ec2b8604472d26 (patch)
treec30629a84f97bd310a3b7729cbb0cdfcb1f96d88 /src
parentbc884fa06a2776f747f6b4b47da175e23ecc9be2 (diff)
downloademacs-f3a3640be894d647b4f27d04e2ec2b8604472d26.tar.gz
emacs-f3a3640be894d647b4f27d04e2ec2b8604472d26.zip
(Ffile_attributes) [WINDOWSNT]: Force inode be positive.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/dired.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d1528cbfe4e..e41f04ef6ff 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-04-05 Eli Zaretskii <eliz@gnu.org>
2
3 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4
12008-03-31 Chong Yidong <cyd@stupidchicken.com> 52008-03-31 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * xdisp.c (next_overlay_string): Don't set 7 * xdisp.c (next_overlay_string): Don't set
diff --git a/src/dired.c b/src/dired.c
index 1a80a41633d..31b7e19ddae 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -1028,7 +1028,17 @@ Elements of the attribute list are:
1028 values[9] = (gid != getegid ()) ? Qt : Qnil; 1028 values[9] = (gid != getegid ()) ? Qt : Qnil;
1029#endif /* BSD4_2 (or BSD4_3) */ 1029#endif /* BSD4_2 (or BSD4_3) */
1030 /* Shut up GCC warnings in FIXNUM_OVERFLOW_P below. */ 1030 /* Shut up GCC warnings in FIXNUM_OVERFLOW_P below. */
1031#ifdef WINDOWSNT
1032 {
1033 /* The bit-shuffling we do in w32.c:stat can turn on the MSB, which
1034 will produce negative inode numbers. People don't like that, so
1035 force a positive inode instead. */
1036 unsigned short tem = s.st_ino;
1037 ino = tem;
1038 }
1039#else
1031 ino = s.st_ino; 1040 ino = s.st_ino;
1041#endif
1032 if (FIXNUM_OVERFLOW_P (ino)) 1042 if (FIXNUM_OVERFLOW_P (ino))
1033 /* To allow inode numbers larger than VALBITS, separate the bottom 1043 /* To allow inode numbers larger than VALBITS, separate the bottom
1034 16 bits. */ 1044 16 bits. */