]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/tools/testls.c
Replace explicit checks for "/" with calls to IsPathSeparator, strchr with first_path...
[bacula/bacula] / bacula / src / tools / testls.c
index e48df2e6ccfc321d289b50975d540300a374ab89..54d46fa0f16a965ca316cb5063870567ed370971 100755 (executable)
 #include "bacula.h"
 #include "findlib/find.h"
 
-#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
-int win32_client = 1;
-#else
-int win32_client = 0;
-#endif
-
 /* Dummy functions */
 int generate_daemon_event(JCR *jcr, const char *event) { return 1; }
 int generate_job_event(JCR *jcr, const char *event) { return 1; }
@@ -125,7 +119,7 @@ main (int argc, char *const *argv)
       }
    }
    if (inc) {
-      fd = fopen(inc, "r");
+      fd = fopen(inc, "rb");
       if (!fd) {
          printf(_("Could not open include file: %s\n"), inc);
          exit(1);
@@ -138,7 +132,7 @@ main (int argc, char *const *argv)
    }
 
    if (exc) {
-      fd = fopen(exc, "r");
+      fd = fopen(exc, "rb");
       if (!fd) {
          printf(_("Could not open exclude file: %s\n"), exc);
          exit(1);