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:
parent
500b04a257
commit
513336871a
@ -76,7 +76,9 @@ main(argc, argv)
|
|||||||
|
|
||||||
srandomdev();
|
srandomdev();
|
||||||
|
|
||||||
|
#if 0
|
||||||
umask(0117); /* only owner can read/write created files */
|
umask(0117); /* only owner can read/write created files */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* try to create data files */
|
/* try to create data files */
|
||||||
filename = &files[0];
|
filename = &files[0];
|
||||||
@ -98,7 +100,7 @@ main(argc, argv)
|
|||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((fd = creat(*filename, 0660)) < 0)
|
if ((fd = creat(*filename, 0666)) < 0)
|
||||||
Error("Cannot create %s.\n", *filename);
|
Error("Cannot create %s.\n", *filename);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user