many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version two of the GNU General Public
- License as published by the Free Software Foundation plus additions
- that are listed in the file LICENSE.
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
BSR *found_bsr = NULL;
/* Do tape/disk seeking only if CAP_POSITIONBLOCKS is on */
- if (!root_bsr || !root_bsr->use_positioning ||
+ if (!root_bsr) {
+ Dmsg0(dbglevel, "NULL root bsr pointer passed to find_next_bsr.\n");
+ return NULL;
+ }
+ if (!root_bsr->use_positioning ||
!root_bsr->reposition || !dev->has_cap(CAP_POSITIONBLOCKS)) {
Dmsg2(dbglevel, "No nxt_bsr use_pos=%d repos=%d\n", root_bsr->use_positioning, root_bsr->reposition);
return NULL;
if (!client) {
return 1; /* no specification matches all */
}
- if (fnmatch(client->ClientName, sessrec->ClientName, 0) == 0) {
+ if (strcmp(client->ClientName, sessrec->ClientName) == 0) {
return 1;
}
if (client->next) {
if (!job) {
return 1; /* no specification matches all */
}
- if (fnmatch(job->Job, sessrec->Job, 0) == 0) {
+ if (strcmp(job->Job, sessrec->Job) == 0) {
return 1;
}
if (job->next) {