2007-01-15 23:06:50 +00:00
|
|
|
--- src/filedir.c
|
|
|
|
+++ src/filedir.c
|
2007-11-21 21:09:52 +00:00
|
|
|
@@ -127,7 +127,7 @@
|
|
|
|
unsigned char digest1[EVP_MAX_MD_SIZE+1];
|
|
|
|
unsigned char digest2[EVP_MAX_MD_SIZE+1];
|
2007-01-15 23:06:50 +00:00
|
|
|
|
|
|
|
-#if defined HAVE_CHFLAGS
|
|
|
|
+#if defined HAVE_CHFLAGS && ! defined __linux__
|
|
|
|
u_long newflags;
|
|
|
|
#endif
|
|
|
|
|
2007-11-21 21:09:52 +00:00
|
|
|
@@ -149,7 +149,7 @@
|
2007-01-15 23:06:50 +00:00
|
|
|
|
|
|
|
Debug("%s: Checking fs-object %s\n",VPREFIX,file);
|
|
|
|
|
|
|
|
-#if defined HAVE_CHFLAGS
|
|
|
|
+#if defined HAVE_CHFLAGS && ! defined __linux__
|
|
|
|
if (ptr != NULL)
|
|
|
|
{
|
2007-11-21 21:09:52 +00:00
|
|
|
Debug("CheckExistingFile(+%o,-%o,+%o,-%o)\n",ptr->plus,ptr->minus,ptr->plus_flags,ptr->minus_flags);
|
|
|
|
@@ -409,7 +409,7 @@
|
2007-01-15 23:06:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-#ifndef HAVE_CHFLAGS
|
2007-11-21 21:09:52 +00:00
|
|
|
+#if ! defined HAVE_CHFLAGS || defined __linux__
|
|
|
|
if (((newperm & 07777) == (dstat->st_mode & 07777)) && (ptr->action != touch)) /* file okay */
|
2007-01-15 23:06:50 +00:00
|
|
|
{
|
|
|
|
Debug("File okay, newperm = %o, stat = %o\n",(newperm & 07777),(dstat->st_mode & 07777));
|
2007-11-21 21:09:52 +00:00
|
|
|
@@ -564,7 +564,7 @@
|
2007-01-15 23:06:50 +00:00
|
|
|
}
|
2007-06-12 16:29:26 +00:00
|
|
|
|
2007-01-15 23:06:50 +00:00
|
|
|
|
|
|
|
-#if defined HAVE_CHFLAGS /* BSD special flags */
|
|
|
|
+#if defined HAVE_CHFLAGS && ! defined __linux__ /* BSD special flags */
|
|
|
|
|
|
|
|
if (ptr != NULL)
|
|
|
|
{
|