On Tue, Jan 25, 2005 at 12:50:09AM +0100, Juliusz Chroboczek wrote: > (I'm the upstream author.) > > > Instead could you change the permissions of the logfile to be 0640 > > and keep the directory as 755. > > That's a good idea. But it's surprisingly tricky to implement. > > The log file is created by Polipo, so it's Polipo itself that should > set the permissions. But Polipo uses fopen to create the log file, > which doesn't take permissions.
How about setting the umask(2) prior to performing the fopen call to create the log file? > It looks like the right solution is to create the file and then use > fdopen. But I'll need to check if fdopen is available on all the > systems that I support. fdopen is POSIX whereas umask is SVR/BSD/POSIX and X/OPEN. umask appears to even exist on Windows but you'd probably have to change other things before polipo ran on it completely. Thanks, Anand -- linux.conf.au 2005 - http://lca2005.linux.org.au/ - Birthplace of Tux April 18th to 23rd - http://lca2005.linux.org.au/ - LINUX Canberra, Australia - http://lca2005.linux.org.au/ - Get bitten! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]