File procps-v3.3.4-w-simply-work.diff of Package procps.16210

--- w.c
+++ w.c	2012-10-30 11:05:00.182344798 +0000
@@ -569,8 +569,19 @@ int main(int argc, char **argv)
 		maxcmd = atoi(p);
 	else
 		maxcmd = MAX_CMD_WIDTH;
+#if 0
+	/*
+	 * I have no idea why it shouldn't be allowed to see the result
+	 * with a line wrap. The other solution would be to create a
+	 * wcat alias, which does w|cat to work around this, but this
+	 * would be stupid in my opinion.
+	 */
 	if (maxcmd < 71)
 		xerrx(EXIT_FAILURE, _("%d column window is too narrow"), maxcmd);
+#else
+	if (maxcmd < 71)
+		xwarnx(_("%d column window could be to too narrow"), maxcmd);
+#endif
 	if (MAX_CMD_WIDTH < maxcmd) {
 		xwarnx(_("%d column width exceeds command buffer size, truncating to %d"),
 		       maxcmd, MAX_CMD_WIDTH);
openSUSE Build Service is sponsored by