From: Mark Wooding Date: Mon, 27 Jun 2011 01:00:42 +0000 (+0100) Subject: client/tripectl.c, debian: Fix logging privileges disaster. X-Git-Tag: 1.0.0pre11~52 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/commitdiff_plain/1a372224dde236370adb73fdcd8468d7def4bc28?hp=1a372224dde236370adb73fdcd8468d7def4bc28 client/tripectl.c, debian: Fix logging privileges disaster. Previous behaviour: tripectl starts as root, opens logfile, starts tripe server, drops privileges, logs happily to file, receives signal, attempts to open new logfile, and fails miserably. It therefore continues logging to the old logfile, which may well have been deleted by this point. New behaviour: fix Debianization to put logs in a /var/log/tripe directory, and arrange for this to be writable by the tripe user; create the log file after dropping privileges. If tripectl can't open the log, it fails, and the tripe server quits due to EOF on stdin. ---