From 90d405a2cbba1aeb9719a7d088be05e2da992caf Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Thu, 14 Apr 2016 15:56:32 -0500 Subject: [PATCH] replace chmod by fchmod --- src/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.c b/src/lib.c index f4f1607..962f119 100644 --- a/src/lib.c +++ b/src/lib.c @@ -364,7 +364,7 @@ bool copy_file(const gchar* src, const gchar* dest) { goto fail2; } - if (chmod(dest, st.st_mode) != 0) { + if (fchmod(fd_dest, st.st_mode) != 0) { LOG(MOD "Unable to chmod '%d' '%s'\n", st.st_mode, dest); goto fail2; }