Commit Graph

1041 Commits

Author SHA1 Message Date
Fumitoshi UKAI
f6ecc06cb2 [w3m-dev 03664] config.param is clear when configure -help
* configure: config.param created after arg parsing
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-21 15:33:16 +00:00
Fumitoshi UKAI
48db009b76 * map.c (follow_map_menu): if USE_IMAGE or MENU_MAP
* proto.h (follow_map_menu): ditto
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-20 15:54:08 +00:00
Fumitoshi UKAI
cc49eb7ecc fix indent 2003-01-20 15:32:02 +00:00
Fumitoshi UKAI
18eebc6488 [w3m-dev 03660] Re: fputs -> Strfputs
* Str.h (Strncmp_charp): paren
	(Strncasecmp_charp): ditto
	(Strinsert): ditto
	(Strshrinkfirst): ditto
* display.c (disp_err_message): added
* file.c (loadGeneralFile): don't put function in macro arg
	(saveBuffer): ditto
* frame.c (createFrameFile): ditto
* proto.h (disp_err_message): macro->function
* table.c (pushdata): if data is NULL, use ""
	(suspend_or_pushdata): if line is NULL, use ""
* textlist.h (pushText): don't use (s) twice in a macro
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:30:18 +00:00
Fumitoshi UKAI
136d8b8115 [w3m-dev 03659] Can't download from SSL.
* istream.c (ISfileno): case IST_SSL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:25:29 +00:00
Fumitoshi UKAI
d619d246a9 [w3m-dev 03658] Re: Other user can see local cookie.
* fm.h (rc_dir): init(NULL)
* rc.c (config_file): deleted
	(init_rc): use rc_dir
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:24:19 +00:00
Fumitoshi UKAI
2f7904260c [w3m-dev 03657] fputs -> Strfputs
* form.c (form_fputs_decode): use Strfputs()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:22:54 +00:00
Fumitoshi UKAI
cfd9a36fd1 [w3m-dev 03655] Re: file.c:image_source when undef USE_IMAGE
* map.c (follow_map_menu): fix warnings
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-19 09:04:32 +00:00
Fumitoshi UKAI
53cbf41507 [w3m-dev 03654] file.c:image_source when undef USE_IMAGE
* file.c (readHeader): image_source ifdef USE_IMAGE
	(loadGeneralFile): ditto
	(uncompress_stream): ditto
From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2003-01-19 08:28:39 +00:00
Fumitoshi UKAI
36cadfb0ce [w3m-dev 03653] SourceForge.net: 576032 w3m https crashes with OpenSSL-0.9.7
* istream.c (ssl_check_cert_ident): use sk_GENERAL_NAME_free()
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-18 18:40:32 +00:00
Fumitoshi UKAI
f9d2c51643 fix indent 2003-01-17 17:30:59 +00:00
Fumitoshi UKAI
7d71f2cba6 [w3m-dev 03652] Re: Debian bug #176981
* file.c (checkHeader): always remove_space
	(loadGeneralFile): no need remove_space
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-17 17:29:58 +00:00
Fumitoshi UKAI
34cf3f1705 [w3m-dev 03651] Debian bug #176981
* file.c (checkRedirection): added
	(loadGeneralFile): check redirection
			t_buf only is created when it is NULL
			remove_space
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17 17:13:02 +00:00
Fumitoshi UKAI
264b3e35ec fix indent 2003-01-17 17:06:57 +00:00
Fumitoshi UKAI
c09389519e [w3m-dev 03647] expandName() and expandPath()
* etc.c (openSecretFile): use expandPath
	(expandName): rewrite
	(file_to_url): use expandPath
* file.c (_doFileCopy): use expandPath
	(doFileSave): use expandPath
* indep.c (expandPath): rewrite
* linein.c (inputLineHistSearch): use expandPath
	(next_dcompl): use expandPath
	(doComplete): use expandPath
* local.c (set_cgi_environ): rewrite
* mailcap.c (loadMailcap): use expandPath
* main.c (svBuf): use expandPath
	(addDownloadList): use expandPath
* rc.c (init_rc): use expandPath
	(rcFile): rewrite
	(auxbinFile): use expandPath
	(libFile): use expandPath
	(etcFile): use expandPath
	(helpFile): use expandPath
* url.c (loadMimeTypes): use expandPath
	(loadURIMethods): use expandPath
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17 17:05:57 +00:00
Fumitoshi UKAI
a79a87e799 fix indent 2003-01-17 16:58:17 +00:00
Fumitoshi UKAI
439d2745a5 [w3m-dev 03646] setup child process, local CGI
* etc.c (reset_signals): static
			don't ignore SIGUSR1
	(close_all_fds_except): static
			DEV_NULL_PATH
	(setup_child): added
	(myExec): rewrite
	(mySystem): rewrite
* file.c (readHeader): check image_source
	(loadGeneralFile): check image_source
	(doExternal): use setup_child
	(_doFileCopy): use setup_child
	(doFileSave): use setup_child
	(uncompress_stream): check image_source
			use setup_child
* image.c (getCharSize): no need stderr redirect
	(openImgdisplay): use setup_child
	(loadImage): use setup_child
	(getImageSize): no need stderr redirect
* local.c (writeLocalCookie): check Local_cookie_file
	(localcgi_popen_rw): added
	(localcgi_popen_r): deleted
	(localcgi_post): rewrite
	(localcgi_get): deleted
* proto.h (localcgi_get): defined by localcgi_post
	(reset_signals): deleted
	(close_all_fds_except): deleted
	(close_all_fds): deleted
	(setup_child): added
* search.c (open_migemo): use setup_child, myExec
* w3mimgdisplay.c (main): use DEV_NULL_PATH
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17 16:57:17 +00:00
Fumitoshi UKAI
4e7b05a901 NEWS update 2003-01-15 18:16:12 +00:00
Fumitoshi UKAI
dcf810e5f7 NEWS update 2003-01-15 18:15:22 +00:00
Fumitoshi UKAI
9ec368f012 NEWS update 2003-01-15 18:14:21 +00:00
Fumitoshi UKAI
379121ada1 NEWS update 2003-01-15 18:12:57 +00:00
Fumitoshi UKAI
549ee1cc09 [w3m-dev 03644] Re: Other user can see local cookie.
* cookie.c (save_cookies): return if no_rc_dir
* etc.c (tmpf_base): add cookie
	(tmpfname): use tmp_dir instead of rc_dir
* file.c (loadGeneralFile): cookie is not passed via URL
* fm.h (TMPF_COOKIE): incl
	(MAX_TMPF_TYPE): incl
	(no_rc_dir): added
	(tmp_dir): added
	(config_file): added
* local.c (Local_cookie_file): added
	(writeLocalCookie): added
	(setLocalCookie): dont set environment LOCAL_COOKIE
	(localcgi_post): writeLocalCookie
	(localcgi_get): writeLocalCookie
* main.c (config_filename): deleted
	(cmd_loadURL): arg FormList
	(main): rewrite config_file, rc
	(ldhelp): no cookie in URL
	(cmd_loadURL): arg FormList
	(goURL0): cmd_loadURL change
	(cmd_loadBuffer): cmd_loadURL change
	(adBmark): cookie is posted
	(follow_map): cmd_loadURL change
	(linkMn): cmd_loadURL change
	(reinit): init_rc change
* proto.h (create_option_search_table): deleted
	(init_rc): no args
* rc.c (create_option_search_table): static
	(init_rc): no args
		rewrite
	(optionpanel_src1): rewrite
	(load_option_panel): html_quote
	(panel_set_option): no_rc_dir
* w3mbookmark.c: rewrite
* w3mhelperpanel.c: rewrite
* scripts/dirlist.cgi.in: rewrite
* scripts/w3mhelp.cgi.in: rewrite
* scripts/w3mmail.cgi.in: rewrite
* scripts/multipart/multipart.cgi.in: rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15 17:13:21 +00:00
Fumitoshi UKAI
0aeedf43a0 * file.c (loadGopherDir): convertLine RAW_MODE
* ftp.c (loadFTPDir): ditto
* fix indent
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-15 16:24:25 +00:00
Fumitoshi UKAI
76cac85389 [w3m-dev 03642] Re: cleanup (don't close connection of news server)
* local.c (localcgi_post): localcgi_popen_r first
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15 16:17:11 +00:00
Fumitoshi UKAI
9e49e56287 [w3m-dev 03641] Re: cleanup (don't close connection of news server)
* ftp.c (ftp_command): fix fwrite arg
* news.c (news_command): fix fwrite arg
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15 16:14:40 +00:00
Fumitoshi UKAI
dfd33cccd5 [w3m-dev 03640] Re: cleanup (don't close connection of news server)
* anchor.c (_put_ahchor_news): always conv_str
		(_put_anchor_all): always conv_str
	* etc.c (close_all_fds): deleted
		(close_all_fds_except): added, except fd=f is left open
	* file.c (guess_filename): added
		(UFhalfclose): added
		(convertLine): cleanup_line if not raw mode
			check uf
		(readHeader): always convertLine
		(loadGeneralFile): rewrite
		(loadGopherDir): return Str, args change to ParsedURL and code
				rewrite
		(saveBuffer): always conv_str
		(_doFileCopy): close_all_fds
		(doFileSave): close_all_fds_except
		(uncompress_stream): dup, close_all_fds_except
	* form.c (form_fputs_decode): always conv_str
		(input_textarea): convertLine
	* frame.c (createFrameFile): convertLine
	* ftp.c (loadFTPDir): arg code
				rewrite
		(readFTPDir): convertLine
	* html.h (UFfileno): added
	* image.c (loadImage): close_all_fds
	* indep.h (RAW_MODE): added
	* local.c (loadLocalDir): return Str
		(dirBuffer): rewrite
		(localcgi_popen_r): close_all_fds
	* main.c (main): check SCM_LOCAL
			print err_msg
	* news.c (news_command): args cmd and arg
		(news_quit): news_command
		(openNewsStream): news_command
		(readNewsgroup): deleted
		(loadNewsgroup): added
		(closeNews): added
	* proto.h (loadGopherDir): update
		(conv_str): define for no JP_CHARSET
		(readFTPDir): deleted
		(loadFTPDir): added
		(readNewsgroup): deleted
		(loadNewsgroup): added
		(dirBuffer): deleted
		(loadLocalDir): added
		(close_all_fds): defined by close_all_fds_except
		(close_all_fds_except): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15 16:11:43 +00:00
Fumitoshi UKAI
04d2ffae3e [w3m-dev 03639] Re: smb.cgi
* Bonus/2ch.cgi: change password handling
* Bonus/README: update
* Bonus/README.eng: ditto
2003-01-15 15:51:29 +00:00
Fumitoshi UKAI
3310092fb4 [w3m-dev 03636] segfault in main.c
* main.c (main): check newbuf->currentURL.file
From: qhwt@myrealbox.com
2003-01-11 16:17:43 +00:00
Fumitoshi UKAI
e4de1aefde Bonus/README.eng: sync with Bonus/README
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-11 16:14:59 +00:00
Fumitoshi UKAI
bc0a1c7136 [w3m-dev 03635] 2ch.cgi
* Bonus/2ch.cgi: added
* Bonus/README: update
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-11 16:12:44 +00:00
Fumitoshi UKAI
43a13e6fa5 Bonus/README.eng: sync with Bonus/README
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-11 16:10:11 +00:00
Fumitoshi UKAI
f01b038c17 [w3m-dev 03634] smb.cgi
* Bonus/smb.cgi: added
* Bonus/README: update
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-11 16:05:17 +00:00
Fumitoshi UKAI
24fbb90b3d * ftp.c (ftp_pasv): ftp_command response
(readFTPDir): masked declaration of realpathname
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-11 16:00:55 +00:00
Fumitoshi UKAI
567bdbc0cb fix indent 2003-01-11 15:55:10 +00:00
Fumitoshi UKAI
03fa645498 [w3m-dev 03633] Re: cleanup (don't close connection of news server)
* file.c (FTPhalfclose): deleted
	(loadGeneralFile): closeFTP when doFileSave is done
	(_doFileCopy): return int
	(doFileMove): return int
	(doFileSave): return int
* ftp.c: rewrite
* main.c (w3m_exit): disconnectFTP
* proto.h (_doFileCopy): return int
	(doFileMove): return int
	(doFileSave): return int
	(openFTP): deleted
	(openFTPStream): return InputStream
	(closeFTP): no arg
	(Ftpfclose): disconnectFTP
* url.c (openFTPstream): deleted
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-11 15:54:08 +00:00
Fumitoshi UKAI
0a6511f3dc fix compiler warnings
* html.h (UFclose): value computed but not used
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-10 17:15:08 +00:00
Fumitoshi UKAI
f4d6305bdd [w3m-dev 03632] cleanup (don't close connection of news server)
* file.c (loadSomething): remove UFclose nntp:,news:
	(loadFile): UFclose
	(loadGeneralFile): always UFclose
* html.h (UFclose): only reset when ISclose ==0
* istream.c (ISclose): return int
	(ISfileno): flag IST_UNCLOSE
* istream.h (ISclose): return int
	(IST_UNCLOSE): added
* news.c (news_close): reset IST_UNCLOSE
	(news_open): set IST_UNCLOSE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 17:06:17 +00:00
Fumitoshi UKAI
dfc317f6ab fix indent 2003-01-10 16:59:32 +00:00
Fumitoshi UKAI
c5ec364d23 [w3m-dev 03631] display current form item
* form.c (form2str): rewrite
* istream.c (ssl_get_certificate): fix typo
* map.c (follow_map_panel): valign=top
	(append_map_info): valign=top
	(append_link_info): valign=top
	(append_frame_info): <pre_int>
			html_quote ssl_certificate
	(page_info_panel): rewrite, html_quote
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:58:30 +00:00
Fumitoshi UKAI
ce8abe2b7c * doc/README.pre_form: update
* doc-jp/README.pre_form: ditto
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-10 16:51:08 +00:00
Fumitoshi UKAI
d29107a5da [w3m-dev 03630] improved pre_form
* form.c (pre_form): add re_url, name
	(add_pre_form): add name
			rewrite
	(loadPreForm): add "form"
	(preFormUpdateBuffer): handle re_url
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:48:45 +00:00
Fumitoshi UKAI
66d04cc161 [w3m-dev 03629] delete tmp file
* etc.c (tempfname): always file to delete
* file.c (xface2xpm): no need fileToDelete
	(readHeader): ditto
	(loadGeneralFile): ditto
	(loadHTMLBuffer): ditto
	(loadHTMLString): ditto
	(loadGopherDir): ditto
	(loadImageBuffer): ditto
	(doExternal): rewrite
	(doFileSave): no need fileToDelete
	(uncompress_stream): ditto
* fm.h (CurrentPid): added
* image.c (getImage): cache->touch to delete
* local.c (setLocalCookie): use CurrentPid
	(localcgi_post): fileToDelete
* main.c (main): CurrentPid
	(pipeBuf): no need fileToDelete
	(query_from_followform): CurrentPid
	(vmSrc): no need fileToDelete
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:42:14 +00:00
Fumitoshi UKAI
03cccce553 [w3m-dev 03628] Re: Error occured while reset
* file.c (doExternal): bufp = NULL, return 1
	(uncompress_stream): tempfname fileToDelete
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:33:38 +00:00
Fumitoshi UKAI
4976d0cfe9 [w3m-dev 03626] Re: relative URL
* url.c (parseURL2): copy if scheme is local or local-cgi
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:29:23 +00:00
Fumitoshi UKAI
b003a875e2 [w3m-dev 03625] keymap key SEARCH string
* main.c (srch): accept command argument
	(reMark): accept command argument
* Bonus/google.cgi: added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:23:52 +00:00
Fumitoshi UKAI
329cc01d50 [w3m-dev 03622] Re: Error occured while reset
* file.c (uncompress_stream): child process initialized
* terms.c (close_tty): close unless stdin,out,err
	(reset_tty): flush_tty, close_tty
	(write1): flush_tty
	(refresh): flush_tty
	(flush_tty): check ttyf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:16:44 +00:00
Fumitoshi UKAI
83493cfb21 fix indent 2003-01-10 16:11:01 +00:00
Fumitoshi UKAI
900d16573c [w3m-dev 03620] -m option and header
* buffer.c (reshapeBuffer): fix reading from stdin
			fix -m option
* display.c (redrawNLine): rewrite
	(redrawLine): return l instead of l->next
	(redrawLineImage): ditto
* file.c (loadFile): read header even if skip header
	(loadGeneralFile): read header even if skip header
* fm.h (SkipHeader): added
* main.c (main): check whether reading from stdin
		SkipHeader
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:08:19 +00:00
Fumitoshi UKAI
0cf4f52a13 [w3m-dev 03619] Re: Error occured while reset
* file.c (process_img): check image.ext
	(HTMLlineproc2body): check image.ext
	(loadImageBuffer): url, ext is in URLFile
* frame.c (unloadFrame): no need to push to fileToDelete
	(copyFrame): no need to reset FB_TODELETE
	(resetFrameElement): f_body->source, buf->sourcefile
	(frame_download_source): buf->source
			buf->sourcefile reset
* frame.h (FB_NOCACHE): deleted
	(FB_TODELETE): deleted
* main.c (vmSrc): Currentbuf->sourcefile
		need_reshape if images exist
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-09 15:30:20 +00:00
Fumitoshi UKAI
f8ea236868 [w3m-dev 03617] sourcefile when Content-Encoding: is specified.
* file.c (uncompress_stream): add src arg
	(examineFile): change uncompress_stream
	(loadGeneralFile): change uncompress_stream
	(doExternal): src
	(uncompress_stream): ext
			tmpfile with same ext
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-08 17:32:36 +00:00