diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c index 17eea63262f1..cca079a83b7c 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*/