w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 3b3983fb997f5ced32e730b89016c8efc9237c20
parent 022ecebf0144d32b9386a63c6809daa144310ae7
Author: ukai <ukai>
Date:   Fri,  8 Feb 2002 14:29:52 +0000

[w3m-dev 03025] fix image loading on EWS4800
* image.c (loadImage): exit if symlink failed
			exit if fopen failed
From: Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>

Diffstat:
MChangeLog | 6++++++
Mimage.c | 8+++++---
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2002-02-08 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp> + + * [w3m-dev 03025] fix image loading on EWS4800 + * image.c (loadImage): exit if symlink failed + exit if fopen failed + 2002-02-08 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 03022] SSL certificates of frame body diff --git a/image.c b/image.c @@ -494,15 +494,17 @@ loadImage(int flag) #if defined(HAVE_SYMLINK) && defined(HAVE_LSTAT) symlink(cache->file, cache->touch); if (lstat(image_lock, &st)) { - symlink(cache->file, image_lock); + if (symlink(cache->file, image_lock)) + exit(0); #else f = fopen(cache->touch, "w"); if (f) fclose(f); if (stat(image_lock, &st)) { f = fopen(image_lock, "w"); - if (f) - fclose(f); + if (!f) + exit(0); + fclose(f); #endif kill(getppid(), SIGUSR1); }