bug in try_make_homedir()

Phillip Oleson poleson at verio.net
Mon Nov 27 15:24:00 CET 2000


Patch is based on 1.0.4, but it seems to be needed in CVS as well.

	Phil.


diff -c ~/TODO/gnupg-1.0.4/g10/openfile.c gnupg/g10/op
*** /usr/home/phil/TODO/gnupg-1.0.4/g10/openfile.c      Tue Sep  5 09:31:57 2000
--- gnupg/g10/openfile.c        Mon Nov 27 15:23:23 2000
***************
*** 329,335 ****
 
      if ( ( *defhome == '~'
             && ( strlen(fname) >= strlen (defhome+1)
!                 && !strcmp(fname+strlen(defhome+1)-strlen(defhome+1),
                             defhome+1 ) ))
           || ( *defhome != '~'
                && !compare_filenames( fname, defhome ) )
--- 329,335 ----
 
      if ( ( *defhome == '~'
             && ( strlen(fname) >= strlen (defhome+1)
!                 && !strcmp(fname+(strlen(fname)-strlen(defhome+1)),
                             defhome+1 ) ))
           || ( *defhome != '~'
                && !compare_filenames( fname, defhome ) )



-- 
Mourn the passing of the Mystic Knights.. but revel in their legacy.



More information about the Gnupg-devel mailing list