]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix windows compilation
authorEric Bollengier <eric@baculasystems.com>
Fri, 21 Jan 2022 15:43:12 +0000 (16:43 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
bacula/src/lib/bpipe.c

index 01fbcb78f7ba596fbb821a0dcc24cb3f5fa919d9..d5e42f74ac1f50dbb1e827b278d710db3f6faf36 100644 (file)
@@ -614,6 +614,8 @@ bool make_tmp_cmd(const char *cmd, const char *tmp, POOLMEM **dest, uint32_t Job
       goto bail_out;
    }
 
+   /* This function is not designed to run on windows systems. TBI */
+#ifndef HAVE_WIN32
    /* Make tmp command file executable for the user in which context we run the commands
     * (if possible) */
    if (user && getuid() == 0) {
@@ -642,6 +644,7 @@ bool make_tmp_cmd(const char *cmd, const char *tmp, POOLMEM **dest, uint32_t Job
          goto bail_out;
       }
    }
+#endif  // HAVE_WIN32
 
    ret = true;