summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_file.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-13 07:46:30 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-13 17:04:32 +0900
commit709b975ca3fa10fd604ebe5cf1be49e88ba6e463 (patch)
tree3e86d63a0213081a236d90b742388e3871305dfb /src/lib/eina/eina_file.c
parente5f343f79ac79293d58134d8ca1ff112fa5d44fa (diff)
check fchmod existence for portabilityy
Diffstat (limited to 'src/lib/eina/eina_file.c')
-rw-r--r--src/lib/eina/eina_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index 126a665..e498794 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -1747,8 +1747,10 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
1747 success = _eina_file_copy_internal(s, d, st.st_size, cb, cb_data); 1747 success = _eina_file_copy_internal(s, d, st.st_size, cb, cb_data);
1748 if (success) 1748 if (success)
1749 { 1749 {
1750#ifdef HAVE_FCHMOD
1750 if (flags & EINA_FILE_COPY_PERMISSION) 1751 if (flags & EINA_FILE_COPY_PERMISSION)
1751 fchmod(d, st.st_mode); 1752 fchmod(d, st.st_mode);
1753#endif
1752 if (flags & EINA_FILE_COPY_XATTR) 1754 if (flags & EINA_FILE_COPY_XATTR)
1753 eina_xattr_fd_copy(s, d); 1755 eina_xattr_fd_copy(s, d);
1754 } 1756 }