Re: New procps release soon

"Dr. Werner Fink" <[email protected]> Wed, 25 Sep 2024 13:14:23 +0200
Newsgroups gmane.linux.procps.devel
Message-ID <[email protected]>
--VNLZMKxV4fN7iBFL
Content-Type: multipart/mixed; boundary="JkrN6aFTkFF4je4T"
Content-Disposition: inline


--JkrN6aFTkFF4je4T
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2024/09/25 20:05:14 +1000, Craig Small wrote:
>=20
> Getting back on topic, that was the last thing I personally had to clear
> out. Anything else for 4.0.5 that anyone needs?

I've got two patches from our glibc maintainer

 procps-ng-4.0.4-idletime-no-tty.patch
 procps-ng-4.0.4-w-array-bounds.patch

I'll attach them.

--=20
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

--JkrN6aFTkFF4je4T
Content-Type: text/x-patch; charset=utf-8
Content-Description: procps-ng-4.0.4-idletime-no-tty.patch
Content-Disposition: attachment;
	filename="procps-ng-4.0.4-idletime-no-tty.patch"
Content-Transfer-Encoding: quoted-printable

Index: procps-ng-4.0.4/src/w.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- procps-ng-4.0.4.orig/src/w.c
+++ procps-ng-4.0.4/src/w.c
@@ -643,8 +643,10 @@ static void showinfo(
     if (u && *u->ut_line =3D=3D ':')
         /* idle unknown for xdm logins */
         printf(" ?xdm? ");
-    else
+    else if (tty[5])
         print_time_ival7(idletime(tty), 0, stdout);
+    else
+	printf("       ");
=20
     /* jpcpu/pcpu */
     if (longform) {

--JkrN6aFTkFF4je4T
Content-Type: text/x-patch; charset=utf-8
Content-Description: procps-ng-4.0.4-w-array-bounds.patch
Content-Disposition: attachment;
	filename="procps-ng-4.0.4-w-array-bounds.patch"
Content-Transfer-Encoding: quoted-printable

Index: procps-ng-4.0.4/src/w.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- procps-ng-4.0.4.orig/src/w.c
+++ procps-ng-4.0.4/src/w.c
@@ -566,12 +566,14 @@ static void showinfo(
         char *sd_tty;
=20
         if (sd_session_get_tty(session, &sd_tty) >=3D 0) {
-            for (i =3D 0; i < strlen (sd_tty); i++)
+	    for (i =3D 0; i < UT_LINESIZE; i++) {
+		if (sd_tty[i] =3D=3D '\0') break;
                 /* clean up tty if garbled */
 	        if (isalnum(sd_tty[i]) || (sd_tty[i] =3D=3D '/'))
 		    tty[i + 5] =3D sd_tty[i];
 		else
 		    tty[i + 5] =3D '\0';
+	    }
 	    free(sd_tty);
 	}
     } else {

--JkrN6aFTkFF4je4T--

--VNLZMKxV4fN7iBFL
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJgBAABCABKFiEEGwa/WjgpkPvLonW+UOkNVR3Bay4FAmbz8IssFIAAAAAAFQAO
cGthLWFkZHJlc3NAZ251cGcub3Jnd2VybmVyQHN1c2UuZGUACgkQUOkNVR3Bay72
qA/+KobQtNtCPQ1x8zUH99npXKZSvVA+p88Fnv00QPz9pogOpIQHs7gB4TLOxAL3
keosJu8hz4N7Cpg4AhnzXmzuih/BG1gnYWVkgYXvlkg0QmJQsU0m629kGag5QpuR
4bh95DvU7vUw2gIzN71pKabedhuW2UOjMOr5ar0auy0N5wEwl9VaTgNltbkr5rb+
ybWkuyDmQLdMRzrQVjOiP7S/K1k3SyeNJvtJECbcL1LXBlTXi9+12rjzrMY2uluq
XJzCwS6Xjf1CbwEf3lIGh4akmvRtN+lLTjwQLdADNCQMWxNCb96qdyMYwFosIlnn
fTQgMwYrf+wIR/cuTdKdZQ+MpGyrTPCosuKf/0ldnpYw/Vi8VVB9MB3CqIUjA7oG
P/exfNqoyKANKsLgNi/QoxSes9zhvlfKOsTnrX+kmY01Kb4d72Gvm9JKB3mM1qi2
Q6E7PLfyjFksfGHh3cfa8Nf0hIH9muMc4JGn91vfaO+VIMtZ5pA/XlCf+dR21bve
Km3OOkA2dP93OFoiiCWpoA5cHUnEXJSzYg3CBwoGVYkYFdDgiLhUyRpcSgsaqpZj
yHgzkAHWJAhN3y9ofyFWO1ChPmgB83IITk0Gkmw65B2xtA3DVRMDDXjyqzPHpnt6
DA1/VLG+DDMzwnd0B7lAG4BVjl2L3h+9+fmJwmMr3e7N8U8=
=YB1z
-----END PGP SIGNATURE-----

--VNLZMKxV4fN7iBFL--