--- xinstall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xinstall.c b/xinstall.c index bf921fb..5a0e390 100644 --- a/xinstall.c +++ b/xinstall.c @@ -119,7 +119,8 @@ install(const char *s1, const char *s2, int depth) } concat(f1, s1, f2, s2); - fchmod(fileno(f2), mode); + if (fchmod(fileno(f2), mode) < 0) + eprintf("fchmod %s:", s2); if (fclose(f2) == EOF) eprintf("fclose %s:", s2); -- 2.11.0
- Re: [hackers] [sbase] [PATCH 10/10] cp: Check res... Quentin Rameau
- [hackers] [sbase] [PATCH 01/10] crypt: Add some missing er... Michael Forney
- [hackers] [sbase] [PATCH 05/10] tail: Use getc and putc in... Michael Forney
- Re: [hackers] [sbase] [PATCH 05/10] tail: Use getc an... Hiltjo Posthuma
- [hackers] [sbase] [PATCH 07/10] concat: Use plain read/wri... Michael Forney
- [hackers] [sbase] [PATCH 09/10] tail: Use fstat in case fi... Michael Forney
- Re: [hackers] [sbase] [PATCH 09/10] tail: Use fstat i... Hiltjo Posthuma
- Re: [hackers] [sbase] [PATCH 09/10] tail: Use fst... Michael Forney
- [hackers] [sbase] [PATCH 06/10] xinstall: Check result of ... Michael Forney
- [hackers] [sbase] [PATCH 04/10] Don't use buffered IO (fre... Michael Forney
- Re: [hackers] [sbase] [PATCH 04/10] Don't use buffere... Silvan Jegen
- Re: [hackers] [sbase] [PATCH 04/10] Don't use buf... Michael Forney
- Re: [hackers] [sbase] [PATCH 04/10] Don't use... Silvan Jegen
- Re: [hackers] [sbase] [PATCH 04/10] Don't... Laslo Hunhold
- Re: [hackers] [sbase] [PATCH 04/10] ... Silvan Jegen
- [hackers] [sbase] [PATCH 02/10] od: Fix buffer overflow if... Michael Forney
- Re: [hackers] [sbase] [PATCH 02/10] od: Fix buffer ov... Silvan Jegen
- Re: [hackers] [sbase] [PATCH 02/10] od: Fix buffe... Michael Forney