---
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.10.2- [hackers] [sbase] [PATCH v2 00/11] IO improvements and some... Michael Forney
- [hackers] [sbase] [PATCH 04/11] Don't use buffered IO ... Michael Forney
- Re: [hackers] [sbase] [PATCH 04/11] Don't use buff... Laslo Hunhold
- [hackers] [sbase] [PATCH 03/11] libutil: Add writeall ... Michael Forney
- [hackers] [sbase] [PATCH 05/11] xinstall: Check result... Michael Forney
- Re: [hackers] [sbase] [PATCH 05/11] xinstall: Chec... Laslo Hunhold
- [hackers] [sbase] [PATCH 11/11] tail: Process bytes wi... Michael Forney
- Re: [hackers] [sbase] [PATCH 11/11] tail: Process ... Laslo Hunhold
- Re: [hackers] [sbase] [PATCH 11/11] tail: Proc... Evan Gates
- Re: [hackers] [sbase] [PATCH 11/11] tail: ... Michael Forney
- Re: [hackers] [sbase] [PATCH 11/11] t... Laslo Hunhold
- [hackers] [sbase] [PATCH 02/11] od: Fix buffer overflo... Michael Forney
- Re: [hackers] [sbase] [PATCH 02/11] od: Fix buffer... Laslo Hunhold
- [hackers] [sbase] [PATCH 07/11] cp: Only call chmod wi... Michael Forney
- [hackers] [sbase] [PATCH 10/11] cp: Also preserve atim... Michael Forney
