summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-12 02:47:04 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-12 02:47:04 -0700
commite3954bead8d7e37978cac4ae5a5ec7836d3dcd1c (patch)
tree948dfad6e4bfce890437dbf798b2cd5720c3a683 /bin/repoman
parent72137f634878c4b0ef54287dd4a33fa2240a68f7 (diff)
downloadportage-e3954bead8d7e37978cac4ae5a5ec7836d3dcd1c.tar.gz
portage-e3954bead8d7e37978cac4ae5a5ec7836d3dcd1c.tar.bz2
portage-e3954bead8d7e37978cac4ae5a5ec7836d3dcd1c.zip
Fix log uid for logrotate-3.8 compat (bug 378451)
If PORT_LOGDIR is writable by the portage group but its uid is not portage_uid, then set the uid to portage_uid if we have privileges to do so, and also copy the uid to the logfile. This fixes logrotate chown failures during the compression phase, when it attempts to copy the uid from the logfile to a temp file. With the "su portage portage" directive and logrotate-3.8.0, logrotate's chown call during the compression phase will only succeed if the log file's uid is portage_uid.
Diffstat (limited to 'bin/repoman')
0 files changed, 0 insertions, 0 deletions