Explorar o código

COMP: Only do O_BINARY on windows

Andy Cedilnik %!s(int64=20) %!d(string=hai) anos
pai
achega
cbc6fee109
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Utilities/cmtar/append.c

+ 4 - 0
Utilities/cmtar/append.c

@@ -231,7 +231,11 @@ tar_append_regfile(TAR *t, char *realname)
   int i, j;
   size_t size;
 
+#ifdef _WIN32
   filefd = open(realname, O_RDONLY | O_BINARY);
+#else
+  filefd = open(realname, O_RDONLY);
+#endif
   if (filefd == -1)
   {
 #ifdef DEBUG