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