snprintf(syscom, sizeof(syscom), "gdb --batch -n -ex \"thread apply all bt\" %s %d", name_buf, getpid());
bpipe = open_bpipe(syscom, 0, "r");
if (bpipe) {
- bool ok = false;
char buf[1000];
while (fgets(buf, sizeof(buf), bpipe->rfd)) {
Pmsg1(000, " %s", buf);
p_ctx->nb_obj++;
sp->type = FT_REG;
- sp->fname = "/@size_update_file@";
+ sp->fname = (char *)"/@size_update_file@";
sp->statp.st_mode = 0640;
sp->statp.st_ctime = now;
sp->statp.st_mtime = now;
p_ctx->nb_obj++;
sp->type = FT_REG;
- sp->fname = "/@size_update_file@";
+ sp->fname = (char *)"/@size_update_file@";
sp->stat_update = true; /* File attributes should be updated */
sp->statp.st_size = 666; /* Update size */
sp->statp.st_mode = 0777; /* Update perissions */