Skip to content

Mxvmem maintenance #285

Merged
merged 3 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mxvmem/mxvmem → forensics/mxvmem
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ProcBuffer():
def readfile(self, fn):
lines = 0
try:
f = open(fn)
f = open(fn, errors='backslashreplace')
except (FileNotFoundError, PermissionError): # do nothing
return 0
for line in f:
Expand Down Expand Up @@ -155,7 +155,7 @@ class ProcInfo(ProcInfoBase):
class ProcInfoSaved(ProcInfoBase): # aka forensics
''' Read from forensics file. '''
def __init__(self, logfile):
self.file = open(logfile)
self.file = open(logfile, errors='backslashreplace')
self.source = logfile

def __next__(self):
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ install_exec forensics/forensicsd "$DESTDIR$usr_sbindir/
install_data forensics/forensicsd.service "$DESTDIR$systemdunitdir/forensicsd.service"
install_data forensics/forensicsd.timer "$DESTDIR$systemdunitdir/forensicsd.timer"
install_data misc_etc_files/modprobe.d/ixgbe_sfp.conf "$DESTDIR$sysconfdir/modprobe.d/ixgbe_sfp.conf"
install_exec mxvmem/mxvmem "$DESTDIR$usr_bindir/mxvmem"
install_exec forensics/mxvmem "$DESTDIR$usr_bindir/mxvmem"
install_data misc_systemd_units/sshd.service "$DESTDIR$systemdunitdir/sshd.service"
install_data misc_systemd_units/pacbio-sshd.service "$DESTDIR$systemdunitdir/pacbio-sshd.service"

Expand Down