From: Eric Bollengier Date: Fri, 21 Jan 2022 15:43:12 +0000 (+0100) Subject: Fix windows compilation X-Git-Tag: Beta-15.0.0~669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fbe3127f8ab59cc5faf32aebdad331952aa9f2f;p=thirdparty%2Fbacula.git Fix windows compilation --- diff --git a/bacula/src/lib/bpipe.c b/bacula/src/lib/bpipe.c index 01fbcb78f..d5e42f74a 100644 --- a/bacula/src/lib/bpipe.c +++ b/bacula/src/lib/bpipe.c @@ -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;