updated to libopts 5.18.2

This commit is contained in:
Nikos Mavrogiannopoulos
2013-11-05 23:30:19 +01:00
parent aaf03d537e
commit fe1c948bcf
20 changed files with 212 additions and 194 deletions
+4
View File
@@ -50,7 +50,11 @@ open_tmp_usage(char ** buf)
}
{
static mode_t const cmask = S_IRWXO | S_IRWXG;
mode_t svmsk = umask(cmask);
int fd = mkstemp(bf);
(void)umask(svmsk);
if (fd < 0) {
AGFREE(bf);
return NULL;