FreeBSD Bugzilla – Attachment 189663 Details for
Bug 225119
[patch] sysutils/bareos-server mtx-changer script is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix mtx-changer.in
bareos-mtx.diff (text/plain), 1.08 KB, created by
Douglas K. Rand
on 2018-01-12 19:32:19 UTC
(
hide
)
Description:
Patch to fix mtx-changer.in
Filename:
MIME Type:
Creator:
Douglas K. Rand
Created:
2018-01-12 19:32:19 UTC
Size:
1.08 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 458864) >+++ Makefile (working copy) >@@ -120,6 +120,7 @@ > BAREOS_UID?= 997 > BAREOS_GID?= ${BAREOS_UID} > BAREOS_DIR?= /var/db/bareos >+MTX?= /usr/local/sbin/mtx > > PLIST_SUB+= BAREOS_DIR=${BAREOS_DIR} > >Index: files/patch-scripts_mtx-changer.in >=================================================================== >--- files/patch-scripts_mtx-changer.in (nonexistent) >+++ files/patch-scripts_mtx-changer.in (working copy) >@@ -0,0 +1,11 @@ >+--- scripts/mtx-changer.in.orig 2018-01-12 13:20:04.913159000 -0600 >++++ scripts/mtx-changer.in 2018-01-12 13:20:15.531373000 -0600 >+@@ -251,7 +251,7 @@ case $cmd in >+ ${MTX} -f $ctl status >${TMPFILE} >+ rtn=$? >+ # can be converted to awk+sed+cut, see below >+- perl -ne ' >++ /usr/local/bin/perl -ne ' >+ /Data Transfer Element (\d+):Empty/ && print "D:$1:E\n"; >+ /Data Transfer Element (\d+):Full \(Storage Element (\d+) Loaded\)(:VolumeTag =\s*(.+))?/ && print "D:$1:F:$2:$4\n"; >+ /Storage Element (\d+):Empty/ && print "S:$1:E\n"; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225119
: 189663