diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-07-12 08:37:07 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-07-12 08:37:07 +0000 |
commit | 8c8a7c58e3d8c25a2acedf7af34c627850736dc1 (patch) | |
tree | cf09f9567b3b0fadaa909277899bc114c6faa0f8 /src/dired.c | |
parent | 28d987ee5d8225bc6d2f146c1b6b5e0b8c9a7c8e (diff) | |
download | emacs-8c8a7c58e3d8c25a2acedf7af34c627850736dc1.tar.gz |
Include blockinput.h.
(Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
Diffstat (limited to 'src/dired.c')
-rw-r--r-- | src/dired.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c index 8b5d7851765..17a80a3ce4b 100644 --- a/src/dired.c +++ b/src/dired.c @@ -99,6 +99,7 @@ extern struct direct *readdir (); #include "charset.h" #include "coding.h" #include "regex.h" +#include "blockinput.h" /* Returns a search buffer, with a fastmap allocated and ready to go. */ extern struct re_pattern_buffer *compile_pattern (); @@ -951,10 +952,12 @@ Elements of the attribute list are: } else { + BLOCK_INPUT; pw = (struct passwd *) getpwuid (s.st_uid); values[2] = (pw ? build_string (pw->pw_name) : make_number (s.st_uid)); gr = (struct group *) getgrgid (s.st_gid); values[3] = (gr ? build_string (gr->gr_name) : make_number (s.st_gid)); + UNBLOCK_INPUT; } values[4] = make_time (s.st_atime); values[5] = make_time (s.st_mtime); |