changeset 816:a6628f0aabc1

Skip file permission checks on Cygwin
author Mikael Berthe <mikael@lilotux.net>
date Sat, 15 Apr 2006 15:55:01 +0200
parents 04edcb6d7ee3
children 6792164a4223
files mcabber/src/utils.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;