Re: Bitkeeper licence issues

Ton Hospel
2002-03-20T22:43:45Z

In article <20020319215800.GN12260@atrey.karlin.m__.cuni.cz>,
Pavel Machek <pavel@suse.cz> writes:
> If nasty user on same system creates symlink (ln -s /etc/passwd
> /tmp/installer123), he may overwrite any file on the system. You probably want
>
> fd = open(installer_name, O_WRONLY | O_TRUNC | O_CREAT | O_EXCL, 0755);
>
> Same goes for data.
> Pavel
fd = open(installer_name, O_WRONLY | O_TRUNC | O_CREAT | O_EXCL, 0777);

the 0777 will still be modified by the umask. If people want e.g.
writability for group for some reason, let them.