Author: ek.kato Date: Wed Nov 7 20:40:58 2007 New Revision: 5043 Modified: trunk/uim/skk.c
Log: * uim/skk.c (skk_save_personal_dictionary) : Use 0600 mode, patched by anonymous in http://uimwikija.mw.cmssquare.com/. Modified: trunk/uim/skk.c ============================================================================== --- trunk/uim/skk.c (original) +++ trunk/uim/skk.c Wed Nov 7 20:40:58 2007 @@ -3184,6 +3184,7 @@ struct skk_line *sl; struct stat st; int len, lock_fd = -1; + mode_t umask_val; if (!skk_dic || skk_dic->cache_modified == 0) return uim_scm_f(); @@ -3199,7 +3200,9 @@ tmp_fn = uim_malloc(len); snprintf(tmp_fn, len, "%s.tmp", fn); + umask_val = umask(S_IRGRP | S_IROTH | S_IWGRP | S_IWOTH); fp = fopen(tmp_fn, "w"); + umask(umask_val); if (!fp) goto error;
