Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265316 - app-crypt/johntheripper-1.7.3.1 fopen: /etc/john/john.ini: No such file or directory
Summary: app-crypt/johntheripper-1.7.3.1 fopen: /etc/john/john.ini: No such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 14:12 UTC by Justin Lecher (RETIRED)
Modified: 2010-01-27 15:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2009-04-07 14:12:57 UTC
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
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-07 22:09:44 UTC
(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
%%
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-07 22:15:42 UTC
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

Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-04-08 07:11:39 UTC
(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.
Comment 4 Fabian Groffen gentoo-dev 2009-04-09 17:18:17 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2009-04-09 17:30:31 UTC
ok, it's actually gentoo-x86 that adds this stupid patch which hardcodes paths.
Comment 6 Fabian Groffen gentoo-dev 2009-04-09 19:41:28 UTC
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.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2009-04-10 10:24:51 UTC
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
Comment 8 Fabian Groffen gentoo-dev 2009-04-10 10:29:08 UTC
That's weird, I tested it yesterday and it worked on Darwin, I guess it needs more patching then.
Comment 9 RB 2009-06-26 19:21:54 UTC
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.
Comment 10 Fabian Groffen gentoo-dev 2009-06-26 19:41:04 UTC
it's basically this commit:
http://overlays.gentoo.org/proj/alt/changeset/41016

(make sure you don't get fooled by trac's bugs)
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-27 15:34:59 UTC
I guess this one is mostly done, right? resolving