Summary: | app-crypt/johntheripper-1.7.3.1 fopen: /etc/john/john.ini: No such file or directory | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Justin Lecher (RETIRED) <jlec> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aoz.syn |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Justin Lecher (RETIRED)
![]() (In reply to comment #0) > The -DJOHN_SYSTEMWIDE_HOME= setting during compilation doesn't fix for Prefix > as john still tries to find its config in /etc > > fopen: /etc/john/john.ini: No such file or directory > uhh, probably because it doesn't exist. %% ls etc/john/john* etc/john/john.conf %% heh, sorry for the silly comment. It is indeed a problem but I'm not sure where the bug is exactly.. mkdir("/home/jolexa/.john", 0700) = -1 EEXIST (File exists) open("/home/jolexa/.john/john.conf", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/jolexa/.john/john.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/john/john.conf", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/john/john.ini", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "fopen: /etc/john/john.ini", 25fopen: /etc/john/john.ini) = 25 write(2, ": No such file or directory\n", 28: No such file or directory (In reply to comment #2) > heh, sorry for the silly comment. forgiven ;) A workaround is to move things from ${EPREFIX}/etc/john to ${HOME}/.john, but still the settings during compilation doesn't work, which is only recognised on a Prefixed root. This is a nasty one, I tried to fix it yesterday using some more defines, but it still barfs, so I guess we'll have to conclude upstream sucks and ignore their shouting that we shouldn't patch their params.h file. ok, it's actually gentoo-x86 that adds this stupid patch which hardcodes paths. ok, can you give it a try? I did some heavy patching here, it's totally broken, but should work for macos now, linux might still be broken, but I hope not. So I queries the right place, but it tries to find john.ini, but we install john.conf. I renamed it. But that's not the real problem, because although the a john.ini is in the right place I get an error: fopen: "/home/anubis/justin/Gentoo/etc/john/john.ini": No such file or directory That's weird, I tested it yesterday and it worked on Darwin, I guess it needs more patching then. If you guys would tell me what changes you've made/post a patch, I'll work on incorporating them into the ebuild revision I'm working on for mpi10+all-5. it's basically this commit: http://overlays.gentoo.org/proj/alt/changeset/41016 (make sure you don't get fooled by trac's bugs) I guess this one is mostly done, right? resolving |