|
|
6d394f |
--- bacula-9.0.6.old/src/qt-console/tray-monitor/task.cpp 2018-01-28 15:19:14.055587280 -0600
|
|
|
6d394f |
+++ bacula-9.0.6/src/qt-console/tray-monitor/task.cpp 2018-01-28 15:18:55.151599308 -0600
|
|
|
6d394f |
@@ -992,15 +992,15 @@
|
|
|
6d394f |
}
|
|
|
6d394f |
|
|
|
6d394f |
/* cache the file set */
|
|
|
6d394f |
- res->bs->fsend(".bvfs_update jobid=%s\n", jobs.toUtf8());
|
|
|
6d394f |
+ res->bs->fsend(".bvfs_update jobid=%s\n", bstrdup(jobs.toUtf8()) );
|
|
|
6d394f |
while (get_next_line(res)) {
|
|
|
6d394f |
Dmsg2(dbglvl, "<- %d %s\n", res->bs->msglen, curline);
|
|
|
6d394f |
}
|
|
|
6d394f |
|
|
|
6d394f |
if (pathid == 0) {
|
|
|
6d394f |
- res->bs->fsend(".bvfs_lsdirs jobid=%s path=\"\"\n", jobs.toUtf8());
|
|
|
6d394f |
+ res->bs->fsend(".bvfs_lsdirs jobid=%s path=\"\"\n", bstrdup(jobs.toUtf8()));
|
|
|
6d394f |
} else {
|
|
|
6d394f |
- res->bs->fsend(".bvfs_lsdirs jobid=%s pathid=%lld\n", jobs.toUtf8(), pathid);
|
|
|
6d394f |
+ res->bs->fsend(".bvfs_lsdirs jobid=%s pathid=%lld\n", bstrdup(jobs.toUtf8()), pathid);
|
|
|
6d394f |
}
|
|
|
6d394f |
|
|
|
6d394f |
while (get_next_line(res)) {
|
|
|
6d394f |
@@ -1024,9 +1024,9 @@
|
|
|
6d394f |
|
|
|
6d394f |
/* then, request files */
|
|
|
6d394f |
if (pathid == 0) {
|
|
|
6d394f |
- res->bs->fsend(".bvfs_lsfiles jobid=%s path=\"\"\n", jobs.toUtf8());
|
|
|
6d394f |
+ res->bs->fsend(".bvfs_lsfiles jobid=%s path=\"\"\n", bstrdup(jobs.toUtf8()));
|
|
|
6d394f |
} else {
|
|
|
6d394f |
- res->bs->fsend(".bvfs_lsfiles jobid=%s pathid=%lld\n", jobs.toUtf8(), pathid);
|
|
|
6d394f |
+ res->bs->fsend(".bvfs_lsfiles jobid=%s pathid=%lld\n", bstrdup(jobs.toUtf8()), pathid);
|
|
|
6d394f |
}
|
|
|
6d394f |
|
|
|
6d394f |
while (get_next_line(res)) {
|