Magellan Linux

Contents of /trunk/openmotif/patches/openmotif-2.2.3-CAN-2004-0914_sec8.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 491 byte(s)
-import

1 --- openMotif-2.2.3/lib/Xm/XpmWrFFrI.c.CAN-2004-0914_sec8 2004-11-29 15:04:10.105373839 +0100
2 +++ openMotif-2.2.3/lib/Xm/XpmWrFFrI.c 2004-11-29 15:04:10.150367679 +0100
3 @@ -322,10 +322,7 @@
4 #ifndef NO_ZPIPE
5 size_t len = strlen(filename);
6
7 - if(len == 0 ||
8 - filename[0] == '/' ||
9 - strstr(filename, "../") != NULL ||
10 - filename[len-1] == '/')
11 + if(len == 0)
12 return(XpmOpenFailed);
13
14 if (len > 2 && !strcmp(".Z", filename + (len - 2))) {