<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>76399</bug_id>
          
          <creation_ts>2005-01-02 05:40 0000</creation_ts>
          <short_desc>johntheripper-1.6.37_p1 uses / for all it&apos;s files</short_desc>
          <delta_ts>2005-08-23 14:28:01 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pookey@pookey.co.uk</reporter>
          <assigned_to>dragonheart@gentoo.org</assigned_to>
          <cc>dr@baileynet.org</cc>

      

      
          <long_desc isprivate="0">
            <who>pookey@pookey.co.uk</who>
            <bug_when>2005-01-02 05:40:21 0000</bug_when>
            <thetext>I just upgraded johntheripper-1.6.37_r1.ebuild to johntheripper-1.6.37_p1.ebuild.

# ls /
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  service  sys  tiel  tmp  usr  var
# pwd
/root/john
# john ./mailpasswords
^C
# ls /
bin   dev  home      john.pot  lib         mnt  proc  sbin     sys   tmp  var
boot  etc  john.log  john.rec  lost+found  opt  root  service  tiel  usr



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
files appeared in / rather then the current directory

Expected Results:  
looked for the .rec file in that pwd, and made it&apos;s log file etc. in the pwd.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pookey@pookey.co.uk</who>
            <bug_when>2005-01-02 05:47:46 0000</bug_when>
            <thetext>i removed the epatch line in the ebuild, and it seems to have fixed the problem.  
ChangeLog says:
  01 Jan 2005; Daniel Black &lt;dragonheart@gentoo.org&gt;
  -johntheripper-1.6-r1.ebuild, -johntheripper-1.6.37-r1.ebuild,
  +johntheripper-1.6.37_p1.ebuild, metadata.xml:
  Version bump removes old version. New _p1 version contains new patches and
  fixes bug #59195 (by Benoit Izac &lt;benoit.izac@free.fr&gt;) and bug #56528

I&apos;m guessing one of the new patchs messes things up somewhat</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-01-02 20:58:26 0000</bug_when>
            <thetext>is HOME set in the environment?

Bug 56528 requested I use it. Should it default to /tmp if not set?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pookey@pookey.co.uk</who>
            <bug_when>2005-01-02 22:36:17 0000</bug_when>
            <thetext># john --restore
fopen: /john.rec: No such file or directory
# echo $HOME
/root
# ls ./john.rec
./john.rec
# pwd
/root/john

I would suggest that rather then using /, $HOME, or /tmp, the pwd is used. This was the behaviour in r1 I think.

Happy new year :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dr@baileynet.org</who>
            <bug_when>2005-02-28 17:22:49 0000</bug_when>
            <thetext>I am experiencing something similar, for some reason, john thinks it&apos;s home directory is &quot;/home&quot;. $HOME is set in my environment to /home/username.

username@host test $ john password-testfile
open: /home/john.log: Permission denied

If I use sudo, it drops john.log and the other session files into &quot;/home&quot;

It should put them into the user home directory by default.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dr@baileynet.org</who>
            <bug_when>2005-02-28 17:34:52 0000</bug_when>
            <thetext>Sorry, when I sudo, it drops them in the root.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-02-28 23:55:40 0000</bug_when>
            <thetext>This is undoubtedly an error in the patch I did. Unfortunately I&apos;m running out of time to fix such things. If you have the ability I&apos;d appreciate a hand.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pkdawson@gentoo.org</who>
            <bug_when>2005-03-04 08:16:09 0000</bug_when>
            <thetext>It&apos;s a problem with these lines:

+   if (path)
+   if (!john_home_path &amp;&amp; (pos = strrchr(path, &apos;/&apos;))) {
+       john_home_length = pos - path + 1;

If I do:
export HOME=/home/pkdawson/
(note the slash on the end)
then it works normally.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kalin@ThinRope.net</who>
            <bug_when>2005-08-23 05:41:08 0000</bug_when>
            <thetext>And why is it supposed to spit a ton of files in home??

Isn&apos;t it normal for a simple text based program to output in the current directory?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kalin@ThinRope.net</who>
            <bug_when>2005-08-23 06:11:57 0000</bug_when>
            <thetext>Yes, just got bitten by some files in / Confirming this as a bug.

BTW, 1.6.38 is out with some minor improvements in speed (mostly NT LM DES (1.5
times), FreeBSD MD5 and Kerberos AFS DES. [stats on a P4@2.4GHz]

Anybody fixing this bug and bumping to 1.6.38?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-08-23 07:06:22 0000</bug_when>
            <thetext>removed johntheripper-1.6.37_p1 
added johntheripper-1.6.37_p11 using the bigpatch from 
http://www.cr0.net:8040/misc/patch-john.html 
added 1.6.38 too. 
enjoy </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kalin@ThinRope.net</who>
            <bug_when>2005-08-23 12:36:49 0000</bug_when>
            <thetext>Ok, I don&apos;t want to open a new bug, but apparently the SRC_URI is bad...

http://www.openwall.com/john/b/john-1.6.38.tar.gz

It should be with a /c/ instead of /b/, so:

http://www.openwall.com/john/c/john-1.6.38.tar.gz

No idea what is the meaning behind that...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kalin@ThinRope.net</who>
            <bug_when>2005-08-23 12:45:45 0000</bug_when>
            <thetext>And 1.38 does not work out-of-the-box :-(

~ # john
fopen: john.ini: No such file or directory

Shall I open another bug?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-08-23 14:28:01 0000</bug_when>
            <thetext>SRI fixed 
 
john 1.6.38 seems to expect /etc/john/john.conf in your current directory. 
Don&apos;t worry about another bug - I&apos;ll look later. </thetext>
          </long_desc>
      
    </bug>

</bugzilla>