Mailinglist Archive: opensuse-commit (1059 mails)

< Previous Next >
commit man
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 10 Jan 2008 02:13:02 +0100
  • Message-id: <20080110011303.4C19D678337@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package man
checked in at Thu Jan 10 02:13:02 CET 2008.

--------
--- man/man.changes 2007-12-13 17:07:31.000000000 +0100
+++ /mounts/work_src_done/STABLE/man/man.changes 2008-01-07
13:09:13.902166000 +0100
@@ -1,0 +2,6 @@
+Mon Jan 7 13:08:16 CET 2008 - werner@xxxxxxx
+
+- Remove suid root from wrapper as we do not cache manual page
+ anymore (bug #351988)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ man.spec ++++++
--- /var/tmp/diff_new_pack.i32761/_old 2008-01-10 02:11:21.000000000 +0100
+++ /var/tmp/diff_new_pack.i32761/_new 2008-01-10 02:11:21.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package man (Version 2.5.0)
#
-# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -23,7 +23,7 @@
BuildRequires: gettext gettext-devel
%endif
Version: 2.5.0
-Release: 2
+Release: 7
Summary: A Program for Displaying man Pages
License: GPL v2 or later
Group: System/Base
@@ -172,8 +172,8 @@
%{_bindir}/apropos
%{_bindir}/catman
%{_bindir}/lexgrog
-%attr(4755,root,root) %{_bindir}/man
-%attr(4755,root,root) %{_bindir}/mandb
+%attr(0755,root,root) %{_bindir}/man
+%attr(0755,root,root) %{_bindir}/mandb
%{_bindir}/manpath
%{_bindir}/whatis
%{_bindir}/zsoelim
@@ -222,11 +222,14 @@
%doc %{_mandir}/man1/*.1.gz
%doc %{_mandir}/man5/*.5.gz
%doc %{_mandir}/man8/*.8.gz
-%defattr(-,man,daemon)
+%defattr(-,man,man)
%{_localstatedir}/cache/man/*
%{_localstatedir}/adm/fillup-templates/sysconfig.cron-man

%changelog
+* Mon Jan 07 2008 - werner@xxxxxxx
+- Remove suid root from wrapper as we do not cache manual page
+ anymore (bug #351988)
* Thu Dec 13 2007 - werner@xxxxxxx
- Add workaround for gettext 0.17
* Mon Dec 10 2007 - werner@xxxxxxx




++++++ man-db-2.5.0.dif ++++++
--- /var/tmp/diff_new_pack.i32761/_old 2008-01-10 02:11:21.000000000 +0100
+++ /var/tmp/diff_new_pack.i32761/_new 2008-01-10 02:11:21.000000000 +0100
@@ -1849,7 +1849,7 @@
if (catpath) {
database = mkdbname (catpath);
--- src/wrapper.c
-+++ src/wrapper.c 2007-12-10 16:05:45.493435000 +0100
++++ src/wrapper.c 2008-01-07 13:06:01.941835371 +0100
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <unistd.h>
@@ -1882,7 +1882,7 @@
struct passwd *pwd;

argc = argc; /* not used */
-@@ -83,57 +85,49 @@ int main (int argc, char **argv)
+@@ -83,57 +85,56 @@ int main (int argc, char **argv)
program_name = xstrdup (basename (argv[0]));

ruid = getuid ();
@@ -1937,6 +1937,13 @@
+ if (ruid == 0) {
+ ruid = pwd->pw_uid;
+ rgid = pwd->pw_gid;
++ } else {
++#ifndef MAN_CATS
++ /* No permissions required to create files
++ * under the sub directories of /var/chache/man */
++ pwd->pw_uid = ruid;
++ pwd->pw_gid = rgid;
++#endif
+ }
+ if (setregid (rgid, pwd->pw_gid)) {
+ fprintf (stderr, _("%s: Failed su to user %s\n"),
wlp->prog, wlp->user);



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread