mirror of https://git.kore.io/kore.git
set a wee bit saner umask
This commit is contained in:
parent
bb6e2823a0
commit
dcb0f458e7
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -224,6 +225,8 @@ kore_cli_main(int argc, char **argv)
|
|||
if (argc < 1)
|
||||
kore_cli_usage(1);
|
||||
|
||||
(void)umask(S_IWGRP|S_IWOTH);
|
||||
|
||||
for (i = 0; cmds[i].name != NULL; i++) {
|
||||
if (!strcmp(argv[0], cmds[i].name)) {
|
||||
argc--;
|
||||
|
|
Loading…
Reference in New Issue