1
0
Fork 0
elinks/src/util
Miciah Dashiel Butler Masters 7f0fb0440c Secure file saving: restore umask after _all_ failure conditions
The secure file saving code plays some shenanigans with the umask.
Previously, the code could fail to restore the old umask when certain libc
calls failed: malloc, mkstemp, fdopen, and fopen. This resulted in
unrelated code creating files with the wrong umode. Specifically, the
download code's automatic directory creation was creating directories
without the execute permission bit.

Thanks to Quiznos for reporting and helping to track the problem down.
2006-10-01 14:57:47 +00:00
..
Makefile Fix inclusion of header files after CONFIG_{MD5,SHA1} were removed 2006-01-21 08:44:19 +01:00
align.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
base64.c Trim trailing whitespaces. 2006-06-14 14:46:30 +02:00
base64.h Support for negotiate-auth, using GSSAPI. It makes possible to 2006-06-14 14:41:59 +02:00
bitfield.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
box.h New function colspan_is_in_box() 2006-09-02 21:48:19 +03:00
color.c Use elinks_ulongcat() instead of snprintf(). 2006-01-17 01:18:45 +01:00
color.h Make 8-bytes buffer more obvious. 2006-01-17 00:48:25 +01:00
color.inc Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
color_s.inc Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
conv.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
conv.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
env.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
env.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
error.c Increase the max length of filenames to 15 for the LOG_* system 2006-01-19 04:25:11 +01:00
error.h Fix typo 2006-01-14 08:24:11 +01:00
fastfind.c Fix various sparse warnings 2005-11-24 15:38:47 +01:00
fastfind.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
file.c Trim trailing whitespaces. 2006-05-31 19:34:49 +02:00
file.h Merge code from create_bittorrent_path() and mkalldirs(). Suggested by 2006-01-05 10:49:05 +01:00
hash.c Pass a pointer to a hash pointer to free_hash() to ensure hash pointer 2006-05-31 19:33:36 +02:00
hash.h Pass a pointer to a hash pointer to free_hash() to ensure hash pointer 2006-05-31 19:33:36 +02:00
lists.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
math.h Don't include <sys/param.h> in util/math for MAX/MIN 2006-01-09 02:09:59 +01:00
md5.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
md5.h Fix inclusion of header files after CONFIG_{MD5,SHA1} were removed 2006-01-21 08:44:19 +01:00
memdebug.c Inroduced garbage collector. Disabled by default 2006-01-30 22:09:13 +01:00
memdebug.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
memlist.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
memlist.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
memory.c Inroduced garbage collector. Disabled by default 2006-01-30 22:09:13 +01:00
memory.h mem_alloc_align: drop the obj type parameter 2006-02-17 17:32:59 +00:00
profile.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
scanner.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
scanner.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
secsave.c Secure file saving: restore umask after _all_ failure conditions 2006-10-01 14:57:47 +00:00
secsave.h Simplify secure_open() call, make it a wrapper around secure_open_umask(). 2006-01-10 23:49:35 +01:00
sha1.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
sha1.h Fix inclusion of header files after CONFIG_{MD5,SHA1} were removed 2006-01-21 08:44:19 +01:00
snprintf.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
snprintf.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
string.c Add routine add_file_to_string and use it in load_textarea_file. 2005-12-18 15:56:59 +00:00
string.h Redefined buggy isdigit. ELinks built with tcc works 2006-04-05 23:35:04 +02:00
time.c WIN32 port: introduced VT100 decoder. ELinks is able to display first page 2006-05-20 14:05:45 +02:00
time.h WIN32 port: introduced VT100 decoder. ELinks is able to display first page 2006-05-20 14:05:45 +02:00