aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-02-06 16:20:25 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-02-06 16:20:25 +0000
commit6352ed69868f0a97a09e57b3b4c48746c7ae8be6 (patch)
tree952446fb5663dea06a3456fdda3bb846eb0329ea /file.c
parent[w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfload (diff)
downloadw3m-6352ed69868f0a97a09e57b3b4c48746c7ae8be6.tar.gz
w3m-6352ed69868f0a97a09e57b3b4c48746c7ae8be6.zip
[w3m-dev 02999] don't ask accept bad cert when background downloading
* file.c (getAuthCookie): if QuietMessage, return NULL * file.c (inputAnswer): if QuietMessage, input "n" From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/file.c b/file.c
index b2a460b..f2e77d4 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.66 2002/02/05 12:31:27 ukai Exp $ */
+/* $Id: file.c,v 1.67 2002/02/06 16:20:25 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1320,6 +1320,8 @@ getAuthCookie(struct http_auth *hauth, char *auth_header,
else
ss = find_auth_cookie(pu->host, pu->port, realm);
if (ss == NULL) {
+ if (QuietMessage)
+ return ss;
/* input username and password */
sleep(2);
if (fmInitialized) {
@@ -7155,6 +7157,8 @@ inputAnswer(char *prompt)
{
char *ans;
+ if (QuietMessage)
+ return "n";
if (fmInitialized) {
term_raw();
ans = inputChar(prompt);