diff options
Diffstat (limited to 'src/dired.c')
| -rw-r--r-- | src/dired.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/dired.c b/src/dired.c index 85af906c1da..1fda9e8b371 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -869,7 +869,7 @@ Elements of the attribute list are: | |||
| 869 | 7. Size in bytes. | 869 | 7. Size in bytes. |
| 870 | This is a floating point number if the size is too large for an integer. | 870 | This is a floating point number if the size is too large for an integer. |
| 871 | 8. File modes, as a string of ten letters or dashes as in ls -l. | 871 | 8. File modes, as a string of ten letters or dashes as in ls -l. |
| 872 | 9. t if file's gid would change if file were deleted and recreated. | 872 | 9. An unspecified value, present only for backward compatibility. |
| 873 | 10. inode number. If it is larger than what an Emacs integer can hold, | 873 | 10. inode number. If it is larger than what an Emacs integer can hold, |
| 874 | this is of the form (HIGH . LOW): first the high bits, then the low 16 bits. | 874 | this is of the form (HIGH . LOW): first the high bits, then the low 16 bits. |
| 875 | If even HIGH is too large for an Emacs integer, this is instead of the form | 875 | If even HIGH is too large for an Emacs integer, this is instead of the form |
| @@ -891,10 +891,6 @@ so last access time will always be midnight of that day. */) | |||
| 891 | Lisp_Object values[12]; | 891 | Lisp_Object values[12]; |
| 892 | Lisp_Object encoded; | 892 | Lisp_Object encoded; |
| 893 | struct stat s; | 893 | struct stat s; |
| 894 | #ifdef BSD4_2 | ||
| 895 | Lisp_Object dirname; | ||
| 896 | struct stat sdir; | ||
| 897 | #endif /* BSD4_2 */ | ||
| 898 | int lstat_result; | 894 | int lstat_result; |
| 899 | 895 | ||
| 900 | /* An array to hold the mode string generated by filemodestring, | 896 | /* An array to hold the mode string generated by filemodestring, |
| @@ -974,17 +970,7 @@ so last access time will always be midnight of that day. */) | |||
| 974 | 970 | ||
| 975 | filemodestring (&s, modes); | 971 | filemodestring (&s, modes); |
| 976 | values[8] = make_string (modes, 10); | 972 | values[8] = make_string (modes, 10); |
| 977 | #ifdef BSD4_2 /* file gid will be dir gid */ | 973 | values[9] = Qt; |
| 978 | dirname = Ffile_name_directory (filename); | ||
| 979 | if (! NILP (dirname)) | ||
| 980 | encoded = ENCODE_FILE (dirname); | ||
| 981 | if (! NILP (dirname) && stat (SDATA (encoded), &sdir) == 0) | ||
| 982 | values[9] = (sdir.st_gid != s.st_gid) ? Qt : Qnil; | ||
| 983 | else /* if we can't tell, assume worst */ | ||
| 984 | values[9] = Qt; | ||
| 985 | #else /* file gid will be egid */ | ||
| 986 | values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; | ||
| 987 | #endif /* not BSD4_2 */ | ||
| 988 | values[10] = INTEGER_TO_CONS (s.st_ino); | 974 | values[10] = INTEGER_TO_CONS (s.st_ino); |
| 989 | values[11] = INTEGER_TO_CONS (s.st_dev); | 975 | values[11] = INTEGER_TO_CONS (s.st_dev); |
| 990 | 976 | ||