Hi Juliusz!
I just uploaded to unstable 1.0.4 polipo release which closes #291822
Debian bug [1]:
* Create /var/cache/polipo, /var/log/polipo and /var/run/polipo
directories by postinst script. /var/log/polipo now has proxy:adm
owners and 2755 rights, log files are proxy:adm 640 (closes: #291822)
Patch is simple and available for linux, I don't know if it nice for
other systems you support, you can test this.
--- polipo-1.0.4.orig/log.c
+++ polipo-1.0.4/log.c
@@ -80,7 +80,9 @@
if(logFile != NULL && logFile->length > 0) {
FILE *f;
+ mode_t mask = umask(026);
f = fopen(logFile->string, "a");
+ umask(mask);
if(f == NULL) {
do_log_error(L_ERROR, errno, "Couldn't open log file %s",
logFile->string);
@@ -340,7 +342,9 @@
{
if(logFile) {
FILE *f;
+ mode_t mask = umask(026);
f = fopen(logFile->string, "a");
+ umask(mask);
if(f == NULL) {
do_log_error(L_ERROR, errno, "Couldn't reopen log file %s",
logFile->string);
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291822
Denis
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users