diff options
Diffstat (limited to 'games/phantasia')
-rw-r--r-- | games/phantasia/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c index 17eea63..cca079a 100644 --- a/games/phantasia/setup.c +++ b/games/phantasia/setup.c @@ -76,7 +76,9 @@ main(argc, argv) srandomdev(); +#if 0 umask(0117); /* only owner can read/write created files */ +#endif /* try to create data files */ filename = &files[0]; @@ -98,7 +100,7 @@ main(argc, argv) /*NOTREACHED*/ } - if ((fd = creat(*filename, 0660)) < 0) + if ((fd = creat(*filename, 0666)) < 0) Error("Cannot create %s.\n", *filename); /*NOTREACHED*/ |