Ethereal-users: Re: [Ethereal-users] File write permissions during capture

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 01 Feb 2006 11:07:07 -0800
LEGO wrote:

Worth to notice that (at least on Tiger but I think in all *nixes) if
writing to a file that exists already it overwrites it but it keeps
ownership and permissions.

Yes, that's standard UN*X behavior - open(..., O_CREAT) and creat() will, if the file in question already exists, just open it for writing (and truncate it in creat() or open() with O_TRUNC) without changing the permissions.