forked from enlightenment/efl
parent
0e03e10b06
commit
8c3981293b
|
@ -783,3 +783,8 @@
|
|||
|
||||
* Fix the mapbuf to show the content always. Sometimes mapbuf couldn't show
|
||||
the content properly.
|
||||
|
||||
2012-12-07 Cedric Bail
|
||||
|
||||
* Safer call to mkstemp in elm_cnp.
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ Fixes:
|
|||
* Fix wheel scroll direction with shift.
|
||||
* Fix the mapbuf to show it's content properly, If the content doesn't
|
||||
have resized, it wouldn't be showed up.
|
||||
* Safer call to mkstemp in elm_cnp.
|
||||
|
||||
Removals:
|
||||
|
||||
|
|
|
@ -1872,6 +1872,7 @@ _tempfile_new(int size)
|
|||
#ifdef HAVE_MMAN_H
|
||||
Tmp_Info *info;
|
||||
const char *tmppath;
|
||||
mode_t cur_umask;
|
||||
int len;
|
||||
|
||||
info = malloc(sizeof(Tmp_Info));
|
||||
|
@ -1892,7 +1893,9 @@ _tempfile_new(int size)
|
|||
return NULL;
|
||||
}
|
||||
snprintf(info->filename,len,"%s/%sXXXXXX", tmppath, "elmcnpitem-");
|
||||
cur_umask = umask(S_IRWXO | S_IRWXG);
|
||||
info->fd = mkstemp(info->filename);
|
||||
umask(cur_umask);
|
||||
# ifdef __linux__
|
||||
{
|
||||
char *tmp;
|
||||
|
|
Loading…
Reference in New Issue