mirror of
https://github.com/mirror/wget.git
synced 2025-03-28 21:10:20 +08:00
[svn] Avoid useless file_exists_p. Published in
<sxsr8y17zav.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
5ff5e936a5
commit
50980de841
@ -1,3 +1,8 @@
|
|||||||
|
2001-05-07 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* http.c (http_loop): If restval is set, set no_truncate to 1
|
||||||
|
unconditionally.
|
||||||
|
|
||||||
2001-05-02 Jan Prikryl <prikryl@cg.tuwien.ac.at>
|
2001-05-02 Jan Prikryl <prikryl@cg.tuwien.ac.at>
|
||||||
|
|
||||||
* ftp-ls.c (ftp_parse_winnt_ls): Assure months are being correctly
|
* ftp-ls.c (ftp_parse_winnt_ls): Assure months are being correctly
|
||||||
|
@ -1514,6 +1514,7 @@ File `%s' already there, will not retrieve.\n"), u->local);
|
|||||||
hstat.restval = 0L;
|
hstat.restval = 0L;
|
||||||
/* Decide whether or not to restart. */
|
/* Decide whether or not to restart. */
|
||||||
if (((count > 1 && (*dt & ACCEPTRANGES)) || opt.always_rest)
|
if (((count > 1 && (*dt & ACCEPTRANGES)) || opt.always_rest)
|
||||||
|
/* #### this calls access() and then stat(); could be optimized. */
|
||||||
&& file_exists_p (locf))
|
&& file_exists_p (locf))
|
||||||
if (stat (locf, &st) == 0 && S_ISREG (st.st_mode))
|
if (stat (locf, &st) == 0 && S_ISREG (st.st_mode))
|
||||||
hstat.restval = st.st_size;
|
hstat.restval = st.st_size;
|
||||||
@ -1522,7 +1523,7 @@ File `%s' already there, will not retrieve.\n"), u->local);
|
|||||||
refuse to truncate it if the server doesn't support continued
|
refuse to truncate it if the server doesn't support continued
|
||||||
downloads. */
|
downloads. */
|
||||||
if (opt.always_rest && hstat.restval)
|
if (opt.always_rest && hstat.restval)
|
||||||
hstat.no_truncate = file_exists_p (locf);
|
hstat.no_truncate = 1;
|
||||||
|
|
||||||
/* Decide whether to send the no-cache directive. We send it in
|
/* Decide whether to send the no-cache directive. We send it in
|
||||||
two cases:
|
two cases:
|
||||||
|
Loading…
Reference in New Issue
Block a user