Skip file permission checks on Cygwin
authorMikael Berthe <mikael@lilotux.net>
Sat, 15 Apr 2006 15:55:01 +0200
changeset 816 a6628f0aabc1
parent 815 04edcb6d7ee3
child 817 6792164a4223
Skip file permission checks on Cygwin
mcabber/src/utils.c
--- a/mcabber/src/utils.c	Sat Apr 15 12:14:48 2006 +0200
+++ b/mcabber/src/utils.c	Sat Apr 15 15:55:01 2006 +0200
@@ -122,6 +122,11 @@
   int fd;
   struct stat buf;
 
+#ifdef __CYGWIN__
+  // Permission checking isn't efficent on Cygwin
+  return 0;
+#endif
+
   fd = lstat(name, &buf);
   if (fd == -1) return -1;