diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-17 17:51:39 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-17 17:51:39 +0000 |
commit | 5317691c2f3d387a40bfeaf2bb76a714bdbd996c (patch) | |
tree | 770ba167a8e6e1d781ea6c16ac53e4174c523b41 | |
parent | [w3m-dev 03214] strtoul() -> strtol() for SunOS4 (diff) | |
download | w3m-5317691c2f3d387a40bfeaf2bb76a714bdbd996c.tar.gz w3m-5317691c2f3d387a40bfeaf2bb76a714bdbd996c.zip |
[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 (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | form.c | 8 |
2 files changed, 10 insertions, 6 deletions
@@ -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 @@ -3498,4 +3504,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.389 2002/06/17 15:50:45 inu Exp $ +$Id: ChangeLog,v 1.390 2002/06/17 17:51:39 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: form.c,v 1.13 2002/02/25 15:40:04 ukai Exp $ */ +/* $Id: form.c,v 1.14 2002/06/17 17:51:39 ukai Exp $ */ /* * HTML forms */ @@ -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"); |