Summary: | tct-1.15 - lazarus cannot find /etc/magic when trying to create HTML formated recovery | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | J. Patrick Lanigan <gentoo.bugzilla> |
Component: | Current packages | Assignee: | Forensics Herd [disbanded] <forensics+obsolete> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fixed missing semicolon in magic block. |
Description
J. Patrick Lanigan
2004-11-06 15:14:52 UTC
Workaround #1: $ ln -s /usr/share/misc/file/magic /etc/magic $ lazarus -h unrm_output Couldn't find /usr/lib/tct/etc/magic, switching over to /etc/magic Workaround #2: $ mkdir /usr/lib/tct/etc $ ln -s /usr/share/misc/file/magic /usr/lib/tct/etc/magic I've currently got it running on a ~500MB file. It's going to take quite a while. I'll report back when it's done. I can't find lazarus or tct in portage.. what package is this bug against? The coroners toolkit: app-forensics/tct masked by keyword ~x86 lazarus is a tool provided in this package. BTW, it worked like a champ with the workaround in place. Not sure what other tools might be broken by the missing /usr/lib/tct/etc files. I'll using it a lot over the next week on a forensics project for school, so if I find any others, I'll post them. The problem was that I missed the $magic_file variable in lazarus, when creating the gentoo patch. I have committed 1.15-r1 with an updated patch. Please test and verify that it solves the problem and let me know. Thanks. Created attachment 43631 [details, diff]
Fixed missing semicolon in magic block.
Line 92 of /usr/lib/tct/bin/lazarus was missing a semicolon and produced the
error:
syntax error at /usr/sbin/lazarus line 92, near "die"
Execution of /usr/sbin/lazarus aborted due to compilation errors.
Added the semicolon as follows and it works fine:
#
# we usually carry around the alternate magic file...
#
$magic_file="/usr/share/misc/file/magic";
die "Can't find $magic_file\n" unless (-f $magic_file);
Excuse my ignorance as to the process of submitting patches. I hope this is OK.
I fixed the tct-1.15-r1-gentoo.diff, rebuilt the digest, and re-emerged. Works
fine. The updated diff is attached
Usually diffs are the way to go. For 1 byte though, it's probably a little overboard ;) Anyways, I just fixed the patch. Thanks again. |