Dmsg1(dbglvl, "Load malware database from %s\n", fname);
/* We open the malware hash database */
- fp = fopen(fname, "r");
+ fp = bfopen(fname, "r");
if (!fp) {
berrno be;
Mmsg(errmsg, _("[DE0053] Unable to open the Malware Database export %s ERR=%s\n"),
case '<':
Dmsg1(100, "Doing < of '%s' include on client.\n", p + 1);
p++; /* skip over < */
- if ((ffd = fopen(p, "rb")) == NULL) {
+ if ((ffd = bfopen(p, "rb")) == NULL) {
berrno be;
Jmsg(jcr, M_FATAL, 0,
_("Cannot open FileSet input file: %s. ERR=%s\n"),
return NULL;
}
fd = bpipe->rfd;
- } else if ((fd = fopen(fname, "rb")) == NULL) {
+ } else if ((fd = bfopen(fname, "rb")) == NULL) {
free(fname);
return NULL;
}
Mmsg(tmp, "%s/%s", working, base);
P(joblist_mutex);
- f = fopen(tmp, "r");
+ f = bfopen(tmp, "r");
if (!f) {
berrno be;
Jmsg(ctx, M_ERROR, "Unable to open job database. ERR=%s\n",
Mmsg(tmp, "%s/%s", working, base);
P(joblist_mutex);
- f = fopen(tmp, "r");
+ f = bfopen(tmp, "r");
if (!f) {
berrno be;
Jmsg(ctx, M_ERROR, "Unable to prune previous jobs. ERR=%s\n",
tmp = get_pool_memory(PM_FNAME);
Mmsg(tmp, "%s/%s", working, base);
- fp = fopen(tmp, "a+");
+ fp = bfopen(tmp, "a+");
if (!fp) {
berrno be;
Jmsg(ctx, M_ERROR, "Unable to update the job history. ERR=%s\n",
*curkey = *curjobname = *prevjob = *rootjob = *buf = *data = 0;
P(joblist_mutex);
- fout = fopen(tmpout, "w");
+ fout = bfopen(tmpout, "w");
if (!fout) {
berrno be;
Jmsg(ctx, M_ERROR, "Unable to prune previous jobs. "
goto bail_out;
}
- f = fopen(tmp, "r");
+ f = bfopen(tmp, "r");
if (!f) {
berrno be;
Jmsg(ctx, M_ERROR, "Unable to prune previous jobs. ERR=%s\n",
*/
Mmsg(path, "%s/snapshotdb/%s", arg->working, arg->name);
if (stat(path, &sp) == 0) {
- FILE *fp = fopen(path, "r");
+ FILE *fp = bfopen(path, "r");
if (!fp) {
printf("status=0 error=\"Unable to get information about snapshot\n");
return 0;
return 0;
}
- FILE *fp = fopen(path, "w");
+ FILE *fp = bfopen(path, "w");
if (!fp) {
berrno be;
printf("status=0 error=\"Unable to store information about snapshot in %s errno=%s\"\n", path, be.bstrerror());