On Tue, Mar 06, 2001 at 10:11:25PM -0500, Michael Richardson wrote:
> I suggest:
>
> #if UNIX
> if(getuid()==0 || geteuid()!=getuid()) { /* or some other appropriate
>variation*/
> umask(022);
> }
> #endif
Hard to say if that would suit the bug reporter. I would think about
#if UNIX
umask(377);
#endif
or something along the line. But that would not help much on a mounted
vfat drive or something. Perhaps ACL are implemented someday and
uses can access that file anyway etc.
IOW: It's not tcpdump's job to enforce the right file permissions
on users files. I will close the bug report.
Thanks
Torsten
PGP signature