Package: dircproxy
Version: 1.0.5-4
Severity: wishlist
It would be nice if there was a way in the config file to specify a directory
other than /tmp for the default logging. You can specify a directory for
additional copies of the logs, but that's not what I'm talking about. I'm
talking about the default of /tmp/dircproxy-$user-$pid-$instance. In
src/irc_log.c starting on line 77,
tmpdir = getenv("TMPDIR");
if (!tmpdir)
tmpdir = getenv("TEMP");
debug("TMPDIR = '%s'", (tmpdir ? tmpdir : "(null)"));
debug("Username = '%s'", pw->pw_name);
debug("PID = '%d'", getpid());
p->temp_logdir = x_sprintf("%s/%s-%s-%d-%d", (tmpdir ? tmpdir : "/tmp"),
PACKAGE, pw->pw_name, getpid(), counter++);
So it checks the enviroment variables "TMPDIR" and "TEMP" and if they are not
set uses /tmp. So right now you can run "TEMP=~/.dirclogs dircproxy" as a way
to do this. But it would be nicer to be able to specify a variable in the
config file instead.
Thanks,
--
Matt Taggart
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]