}
get_client_name(ua, &rx);
- if (!rx.ClientName) {
+ if (!rx.ClientName[0]) {
ua->error_msg(_("No Client resource found!\n"));
goto bail_out;
}
break;
case JT_COPY:
case JT_MIGRATE:
- char *prt_type;
+ const char *prt_type;
jcr->setJobLevel(L_FULL); /* default level */
if (ua->api) {
ua->signal(BNET_RUN_CMD);
{
POOL_DBR pr;
POOL_MEM query(PM_MESSAGE);
- char ed1[50], ed2[50], *poolname;
+ char ed1[50], ed2[50];
+ const char *poolname;
if(val && *val) { /* update volume recyclepool="Scratch" */
/* If a pool name is given, look up the PoolId */
list_terminated_jobs(sp); /* defined in lib/status.h */
}
-#if defined(HAVE_LZO)
-static const bool have_lzo = true;
-#else
-static const bool have_lzo = false;
-#endif
-
-
static void api_list_status_header(STATUS_PKT *sp)
{
char *p;
return 0;
}
+#if defined(HAVE_LINUX_OS)
static void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype,
const char *mountpoint, const char *mntopts,
const char *fsname)
free(item);
}
}
+#endif
/* Compare directly the FS from a fname with a string */
bool fstype_cmp(FF_PKT *ff_pkt, const char *fsname)
int mode_read, mode_write, mode_shell;
BPIPE *bpipe;
int save_errno;
+#if !defined(HAVE_FCNTL_F_CLOSEM) && !defined(HAVE_CLOSEFROM)
struct rlimit rl;
int64_t rlimitResult=0;
+#endif
if (!prog || !*prog) {
/* execve(3) A component of the file does not name an existing file or file is an empty string. */