Hello community,

here is the log from the commit of package texlive for openSUSE:Factory checked 
in at 2020-02-06 13:07:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/texlive (Old)
 and      /work/SRC/openSUSE:Factory/.texlive.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "texlive"

Thu Feb  6 13:07:25 2020 rev:62 rq:770144 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/texlive/texlive.changes  2020-01-19 
20:57:48.872062131 +0100
+++ /work/SRC/openSUSE:Factory/.texlive.new.26092/texlive.changes       
2020-02-06 13:07:39.072317406 +0100
@@ -1,0 +2,10 @@
+Wed Feb  5 06:56:24 UTC 2020 - Dr. Werner Fink <[email protected]>
+
+- Check passwd not group file for user mktex 
+
+-------------------------------------------------------------------
+Fri Jan 31 12:32:25 UTC 2020 - Dr. Werner Fink <[email protected]>
+
+- Introduce a user mktex as replacement for user nobody (boo#1159740)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ texlive.spec ++++++
--- /var/tmp/diff_new_pack.2T03tO/_old  2020-02-06 13:07:41.576318768 +0100
+++ /var/tmp/diff_new_pack.2T03tO/_new  2020-02-06 13:07:41.580318771 +0100
@@ -312,7 +312,9 @@
 %define _appdefdir     %{_x11data}/app-defaults
 #
 %define texgrp         mktex
+%define texusr         mktex
 #%define texgid                505
+#%define texuid                505
 #
 %description
 After installing texlive and the package texlive-latex, find a large
@@ -3932,7 +3934,7 @@
 
     # compile public
     mkdir -p ${prefix}/lib/mktex
-    $CC ${RPM_OPT_FLAGS} -DTEXGRP='"%{texgrp}"' 
-DMKTEX='"%{_libexecdir}/mktex"' -fPIE -pie -o ${prefix}/lib/mktex/public 
%{S:50}
+    $CC ${RPM_OPT_FLAGS} -DTEXGRP='"%{texgrp}"' -DTEXUSR='"%{texusr}"' 
-DMKTEX='"%{_libexecdir}/mktex"' -fPIE -pie -o ${prefix}/lib/mktex/public 
%{S:50}
 
     # install our own scripts
     mkdir -p ${prefix}/bin
@@ -4279,6 +4281,7 @@
 
 %pre kpathsea-bin
 %{_bindir}/getent group %{texgrp} > /dev/null 2>&1 || %{_sbindir}/groupadd -r 
%{?texgid:-g %texgid} %{texgrp}
+%{_bindir}/getent passwd %{texusr} > /dev/null 2>&1 || %{_sbindir}/useradd  -r 
%{?texuid:-u %texuid} -g %{texgrp} -d %{_fontcache} -s /bin/false %{texusr}
 
 %post kpathsea-bin
 %if %{defined set_permissions}
@@ -4287,6 +4290,7 @@
 
 %pre
 %{_bindir}/getent group %{texgrp} > /dev/null 2>&1 || %{_sbindir}/groupadd -r 
%{?texgid:-g %texgid} %{texgrp}
+%{_bindir}/getent passwd %{texusr} > /dev/null 2>&1 || %{_sbindir}/useradd  -r 
%{?texuid:-u %texuid} -g %{texgrp} -d %{_fontcache} -s /bin/false %{texusr}
 
 %post
 mkdir -p /var/run/texlive

++++++ public.8 ++++++
--- /var/tmp/diff_new_pack.2T03tO/_old  2020-02-06 13:07:41.628318796 +0100
+++ /var/tmp/diff_new_pack.2T03tO/_new  2020-02-06 13:07:41.628318796 +0100
@@ -17,9 +17,9 @@
 .\"
 .TH NOBODY 8 "Apr 27, 2012" "" "Linux System Administrator's Manual"
 .SH NAME
-public \- for user root run specific TeX programs as user \fInobody\fP
+public \- for user root run specific TeX programs as user \fImktex\fP
 .br
-public \- for all users run specific TeX programs as group \fIpublic\fP
+public \- for all users run specific TeX programs as group \fImktex\fP
 .SH SYNOPSIS
 .B public
 .RB \->\ [ texhash | mktexlsr | mktexmf | mktexpk | mktextfm ]

++++++ public.c ++++++
--- /var/tmp/diff_new_pack.2T03tO/_old  2020-02-06 13:07:41.648318807 +0100
+++ /var/tmp/diff_new_pack.2T03tO/_new  2020-02-06 13:07:41.648318807 +0100
@@ -1,5 +1,5 @@
 /*
- * Public      For user root run a specific program as user nobody
+ * Public      For user root run a specific program as user mktex
  *             for user root and others use group public and umask 0002
  *
  * Usage:      public -> [texhash|mktexlsr|mktexmf|mktexpk|mktextfm]
@@ -36,7 +36,10 @@
 #include <sys/stat.h>
 
 #ifndef TEXGRP
-# define TEXGRP "public"
+# define TEXGRP "mktex"
+#endif
+#ifndef TEXUSR
+# define TEXUSR "mktex"
 #endif
 #ifndef MKTEX
 # define "/usr/lib/mktex"
@@ -122,10 +125,10 @@
     if ((grp = getgrnam(TEXGRP)) == (struct group*)0)
        goto err;
 
-    if (ruid == 0 || euid == 0) {   /* If user is root switch over to 
nobody:public */
+    if (ruid == 0 || euid == 0) {   /* If user is root switch over to 
mktex:mktex */
        int initgrp = 0;
 
-       if ((pwd = getpwnam("nobody")) == (struct passwd*)0)
+       if ((pwd = getpwnam(TEXUSR)) == (struct passwd*)0)
            goto err;
 
        if (ruid != pwd->pw_uid)


Reply via email to