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:
Bruce Evans 1998-09-05 15:56:10 +00:00
parent 500b04a257
commit 513336871a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38867

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