Georg Baum wrote:
> Peter Kümmel wrote:
>
>> Is this mapping OK?
>
> Sorry, only after reading the mapping I realize that my suggestion does not
> make sense: We want to make the file unreadable for other users. This is
> not possible with the windows variant of chmod, so I think it is best to
> not use chmod on windows at all.
>
>
> Georg
>
>
OK, I disable it:
Index: src/support/copy.C
===================================================================
--- src/support/copy.C (revision 15916)
+++ src/support/copy.C (working copy)
@@ -21,9 +21,6 @@
# include <sys/types.h>
#endif
-#if defined(HAVE_CHMOD) && defined(_MSC_VER)
-#include <io.h>
-#endif
namespace lyx {
@@ -59,7 +56,7 @@
if (!ofs)
return false;
ofs.close();
- if (!chmod(to, mode_t(mode)))
+ if (!support::chmod(to, mode))
return false;
}
Index: development/cmake/config.h.cmake
===================================================================
--- development/cmake/config.h.cmake (revision 15916)
+++ development/cmake/config.h.cmake (working copy)
@@ -171,8 +171,9 @@
#ifdef _MSC_VER
#pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false'
(performance warning)
+#pragma warning( disable : 4996 ) //: was declared deprecated
#ifdef HAVE_CHMOD
-typedef int mode_t;
+#undef HAVE_CHMOD
#endif
#endif