sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit fe62ed0d48b8cf7e4af9b029276f38a35ae87363
parent 73066131ab6474e1761aa597271f9767260f9dd7
Author: sin <sin@2f30.org>
Date:   Tue Feb 18 16:49:41 +0000

Preserve permissions when copying files

Diffstat:
util/cp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cp.c b/util/cp.c @@ -66,9 +66,9 @@ cp(const char *s1, const char *s2) eprintf("fopen %s:", s2); concat(f1, s1, f2, s2); + fchmod(fileno(f2), st.st_mode); fclose(f2); fclose(f1); return 0; } -