Author: kevin Update of /cvs/extras/rpms/fontforge/devel In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29629
Modified Files: fontforge.spec Added Files: fontforge-20090923-rel-path.patch Log Message: Add patch to fix relative paths for fontlint (fixes #530760) fontforge-20090923-rel-path.patch: fsys.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) --- NEW FILE fontforge-20090923-rel-path.patch --- diff -Nur fontforge-20090923.orig/gutils/fsys.c fontforge-20090923/gutils/fsys.c --- fontforge-20090923.orig/gutils/fsys.c 2009-01-25 11:06:49.000000000 -0700 +++ fontforge-20090923/gutils/fsys.c 2009-12-31 09:59:54.000000000 -0700 @@ -41,6 +41,15 @@ static char dirname_[1024]; +static void savestrcpy(char *dest,const char *src) { + forever { + *dest = *src; + if ( *dest=='\0' ) + break; + ++dest; ++src; + } +} + char *GFileGetAbsoluteName(char *name, char *result, int rsiz) { /* result may be the same as name */ char buffer[1000]; @@ -62,13 +71,13 @@ if ( *spt=='/' ) ++spt; for ( pt = spt; *pt!='\0' && *pt!='/'; ++pt ); if ( pt==spt ) /* Found // in a path spec, reduce to / (we've*/ - strcpy(spt,pt); /* skipped past the :// of the machine name) */ - else if ( pt==spt+1 && spt[0]=='.' ) /* Noop */ - strcpy(spt,pt); - else if ( pt==spt+2 && spt[0]=='.' && spt[1]=='.' ) { + savestrcpy(spt,spt+1); /* skipped past the :// of the machine name) */ + else if ( pt==spt+1 && spt[0]=='.' ) { /* Noop */ + savestrcpy(spt,spt+2); + } else if ( pt==spt+2 && spt[0]=='.' && spt[1]=='.' ) { for ( bpt=spt-2 ; bpt>rpt && *bpt!='/'; --bpt ); if ( bpt>=rpt && *bpt=='/' ) { - strcpy(bpt,pt); + savestrcpy(bpt,pt); spt = bpt; } else { rpt = pt; @@ -99,7 +108,7 @@ if ( dir==NULL || *dir=='\0' ) { if ( strlen( fname )<size-1 ) /* valgrind didn't like my strncpies but this complication makes it happy */ - strcpy(buffer,fname); + savestrcpy(buffer,fname); else { strncpy(buffer,fname,size-1); buffer[size-1]='\0'; Index: fontforge.spec =================================================================== RCS file: /cvs/extras/rpms/fontforge/devel/fontforge.spec,v retrieving revision 1.48 retrieving revision 1.49 diff -u -p -r1.48 -r1.49 --- fontforge.spec 8 Nov 2009 18:37:27 -0000 1.48 +++ fontforge.spec 1 Jan 2010 04:23:06 -0000 1.49 @@ -5,7 +5,7 @@ Name: fontforge Version: 20090923 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Outline and bitmap font editor Group: Applications/Publishing @@ -16,6 +16,7 @@ Source1: fontforge.desktop Source2: http://downloads.sourceforge.net/fontforge/fontforge_htdocs-%{docs_version}.tar.bz2 Source3: fontforge.xml Patch1: fontforge-20090224-pythondl.patch +Patch2: fontforge-20090923-rel-path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: xdg-utils @@ -57,6 +58,7 @@ to compile applications against fontforg %setup -q -n %{name}-%{version} %patch1 -p1 +%patch2 -p1 mkdir htdocs tar xjf %{SOURCE2} -C htdocs @@ -147,6 +149,9 @@ update-mime-database %{_datadir}/mime &> %{_libdir}/pkgconfig/*.pc %changelog +* Wed Dec 30 2009 Kevin Fenzi <ke...@tummy.com> - 20090923-2 +- Add patch to fix relative paths for fontlint (fixes #530760) + * Sun Nov 01 2009 Kevin Fenzi <ke...@tummy.com> - 20090923-1 - Upgrade to 20090923 _______________________________________________ Fedora-fonts-bugs-list mailing list Fedora-fonts-bugs-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list