From fb3ecf163485c428ebf863e65e60ec884e741ada Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 13 Dec 2012 09:02:04 +0100 Subject: change permissions of /var/log/apt/term.log to 0640 (LP: #975199) --- apt-pkg/deb/dpkgpm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index c9df41d3a..6cb8bc6b6 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -726,7 +726,7 @@ bool pkgDPkgPM::OpenLog() gr = getgrnam("adm"); if (pw != NULL && gr != NULL) chown(logfile_name.c_str(), pw->pw_uid, gr->gr_gid); - chmod(logfile_name.c_str(), 0644); + chmod(logfile_name.c_str(), 0640); fprintf(d->term_out, "\nLog started: %s\n", timestr); } -- cgit v1.2.3