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
8c8a7c58
Commit
8c8a7c58
authored
Jul 12, 2006
by
YAMAMOTO Mitsuharu
Browse files
Include blockinput.h.
(Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
parent
28d987ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/dired.c
src/dired.c
+3
-0
No files found.
src/dired.c
View file @
8c8a7c58
...
...
@@ -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
);
...
...
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