Don't do anything special to prevent access to created files - honour

the default umask.  World unreadable files broke installing over nfs.
This commit is contained in:
bde 1998-09-05 15:56:10 +00:00
parent a84a2dedfc
commit d251b2c548

View File

@ -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*/