[GRASS5] temp file permissions: 0666?
Glynn Clements
glynn at gclements.plus.com
Tue Feb 15 07:33:54 EST 2005
Radim Blazek wrote:
> What does happen with umask in this case?:
>
> execl ("/bin/sh", "sh", "-c", startup, 0);
The child inherits its umask from the parent.
> The problem appeares in DB drivers which create 0666 files even if umask
> in shell is 0022. How to set umask correctly?
lib/db/dbmi_driver/driver.c:
db_driver(int argc,
char *argv[])
{
int stat;
int procnum;
int i;
int rfd, wfd;
FILE *send, *recv;
umask(0);
Remove that umask() call.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list