FS#7194 - pacman sets wrong permission to /tmp
Attached to Project:
Arch Linux
Opened by Pierre Schmitz (Pierre) - Thursday, 17 May 2007, 20:28 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 19 May 2007, 18:31 GMT
Opened by Pierre Schmitz (Pierre) - Thursday, 17 May 2007, 20:28 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 19 May 2007, 18:31 GMT
|
Details
Pacman seems to ignore the file permissions of the /tmp
directory (1777) and sets them to 0755. This breaks a lot of
applications; eg. KDE, GNOME and perhaps all other X
apps.
As a workaround this could be fixed by an updated install script for the filesystem package. This bugs exists on the just released "Duke" ISOs. |
This task depends upon
Closed by Pierre Schmitz (Pierre)
Saturday, 19 May 2007, 18:31 GMT
Reason for closing: Fixed
Additional comments about closing: workaround was added to filesystem package. Pacman bug #7197 still needs to be fixed.
This workaround should be reverted in futture versions of filesystem when the pacman bug was fixed.
Saturday, 19 May 2007, 18:31 GMT
Reason for closing: Fixed
Additional comments about closing: workaround was added to filesystem package. Pacman bug #7197 still needs to be fixed.
This workaround should be reverted in futture versions of filesystem when the pacman bug was fixed.
so let's keep this one as a request for workaround
diff -u -r1.131 add.c
--- lib/libalpm/add.c 17 Apr 2007 02:31:04 -0000 1.131
+++ lib/libalpm/add.c 18 May 2007 03:07:13 -0000
@@ -704,6 +704,8 @@
_alpm_log(PM_LOG_ERROR, _("could not extract %s (%s)"), filename, strerror(errno));
alpm_logaction(_("error: could not extract %s (%s)"), filename, strerror(errno));
errors++;
+ } else {
+ chmod(filename, archive_entry_mode(entry));
}
/* calculate an hash if this is in newpkg's backup */