Blame SOURCES/lsof-4.87-LTsock-test-fail-on-ppc64le.patch

131cfb
diff -up ./dialects/linux/dproc.c.ori ./dialects/linux/dproc.c
131cfb
--- ./dialects/linux/dproc.c.ori	2017-09-05 09:39:00.602482719 +0200
131cfb
+++ ./dialects/linux/dproc.c	2017-09-05 09:49:43.079902156 +0200
131cfb
@@ -829,10 +829,10 @@ process_id(idp, idpl, cmd, uid, pid, ppi
131cfb
 /*
131cfb
  * Process the ID's current working directory info.
131cfb
  */
131cfb
+	efs = 0;
131cfb
 	if (!Ckscko) {
131cfb
 	    (void) make_proc_path(idp, idpl, &path, &pathl, "cwd");
131cfb
 	    alloc_lfile(CWD, -1);
131cfb
-	    efs = 0;
131cfb
 	    if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) {
131cfb
 		if (!Fwarn) {
131cfb
 		    (void) memset((void *)&sb, 0, sizeof(sb));
131cfb
@@ -878,13 +878,13 @@ process_id(idp, idpl, cmd, uid, pid, ppi
131cfb
 /*
131cfb
  * Process the ID's root directory info.
131cfb
  */
131cfb
+	lnk = ss = 0;
131cfb
 	if (!Ckscko) {
131cfb
 	    (void) make_proc_path(idp, idpl, &path, &pathl, "root");
131cfb
 	    alloc_lfile(RTD, -1);
131cfb
 	    if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) {
131cfb
 		if (!Fwarn) {
131cfb
 		    (void) memset((void *)&sb, 0, sizeof(sb));
131cfb
-		    lnk = ss = 0;
131cfb
 		    (void) snpf(nmabuf, sizeof(nmabuf), "(readlink: %s)",
131cfb
 			strerror(errno));
131cfb
 		    nmabuf[sizeof(nmabuf) - 1] = '\0';
131cfb
@@ -925,13 +925,12 @@ process_id(idp, idpl, cmd, uid, pid, ppi
131cfb
 /*
131cfb
  * Process the ID's execution info.
131cfb
  */
131cfb
+	lnk = ss = txts = 0;
131cfb
 	if (!Ckscko) {
131cfb
-	    txts = 0;
131cfb
 	    (void) make_proc_path(idp, idpl, &path, &pathl, "exe");
131cfb
 	    alloc_lfile("txt", -1);
131cfb
 	    if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) {
131cfb
 		(void) memset((void *)&sb, 0, sizeof(sb));
131cfb
-		lnk = ss = 0;
131cfb
 		if (!Fwarn) {
131cfb
 		    if ((errno != ENOENT) || uid) {
131cfb
 			(void) snpf(nmabuf, sizeof(nmabuf), "(readlink: %s)",