The following commit has been merged in the master branch:
commit 3cdfe225ab9b72cc7cb019fa8d8c81cd72d6ea52
Author: Guillem Jover <[email protected]>
Date:   Sun Jan 4 18:45:14 2009 +0200

    Make dpkg log files user readable
    
    Closes: #480556

diff --git a/debian/changelog b/debian/changelog
index 9e6986a..abaa999 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,7 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     Thanks to Colin Watson <[email protected]>. Closes: #509578
   * Fix typo in package description ('privides' -> 'provides').
     Thanks to Pascal De Vuyst <[email protected]>. Closes: #510755
+  * Make dpkg log files user readable. Closes: #480556
 
   [ Raphael Hertzog ]
   * Enhance dpkg-shlibdeps's error message when a library can't be found to
diff --git a/debian/dpkg.logrotate b/debian/dpkg.logrotate
index c9d4991..cf36f08 100644
--- a/debian/dpkg.logrotate
+++ b/debian/dpkg.logrotate
@@ -5,5 +5,5 @@
        delaycompress
        missingok
        notifempty
-       create 640 root adm
+       create 644 root root
 }
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index c611988..5bf4563 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -60,8 +60,8 @@ remove_info_symlink() {
 create_logfile() {
     logfile=/var/log/dpkg.log
     touch $logfile
-    chmod 640 $logfile
-    chown root:adm $logfile 2>/dev/null || chown 0:4 $logfile
+    chmod 644 $logfile
+    chown root:root $logfile 2>/dev/null || chown 0:0 $logfile
 }
 
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to