w3m

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

commit 3b3c392047ae04dfec26abb8bdb798933d0e1262
parent b912b5ecbed03487e5c8a92248807a5228fe2036
Author: ukai <ukai>
Date:   Mon, 17 Jun 2002 17:51:39 +0000

[w3m-dev 03212] lstat() in form.c
* form.c: define lstat unless HAVE_LSTAT
	(form_write_from_file): always check lstat()
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>

Diffstat:
MChangeLog | 6++++++
Mform.c | 6++----
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2002-06-18 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> + + * [w3m-dev 03212] lstat() in form.c + * form.c: define lstat unless HAVE_LSTAT + (form_write_from_file): always check lstat() + 2002-06-17 Dai Sato <satodai@dog.intcul.tohoku.ac.jp> * [w3m-dev 03214] strtoul() in frame.c diff --git a/form.c b/form.c @@ -8,12 +8,12 @@ #include "myctype.h" #include "local.h" -#ifdef __EMX__ +#ifndef HAVE_LSTAT /* lstat is identical to stat, only the link itself is statted, not the file * that is obtained by tracing the links. But on OS/2 systems, there is no * differences. */ #define lstat stat -#endif /* __EMX__ */ +#endif /* not HAVE_LSTAT */ extern Str *textarea_str; #ifdef MENU_SELECT @@ -642,10 +642,8 @@ form_write_from_file(FILE * f, char *boundary, char *name, char *filename, fprintf(f, "Content-Type: %s\r\n\r\n", type ? type : "application/octet-stream"); -#ifdef HAVE_LSTAT if (lstat(file, &st) < 0) goto write_end; -#endif /* HAVE_LSTAT */ if (S_ISDIR(st.st_mode)) goto write_end; fd = fopen(file, "r");