After migrating to use /usr/openwin/lib/libXpm.so.4, an error message will popup at dtlogin GUI and the xxxxx logo image will not be displayed on the screen.
This problem should be introduced by the fix of *Additional overflows in XPM code*. This regression has been fixed in libXm.so.4 private copy of Xpm.
1. Close all the unused fd in child process in s_popen.c.
2. Use strtok_r instead of strtok in s_popen.c.
3. Use execve to execute compress/gunzip/gzip in s_popen.c.
4. Use full path of compress/gunzip/gzip instead of their basename in XpmRdFToI.c and XpmWrFFrI.c.
5. Use sprintf(buf, "compress > %s", filename) instead of sprintf(buf, "compress > \"%s\""
qiu- xxxxx@xxxxx.com 2005-2-22 02:55:16 GMT