Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: setjobpwd() - PATH_MAX



There seems no point in truncating.

Index: Src/jobs.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/jobs.c,v
retrieving revision 1.4
diff -u -r1.4 jobs.c
--- Src/jobs.c	2000/07/28 16:35:48	1.4
+++ Src/jobs.c	2000/09/22 22:23:31
@@ -982,15 +982,11 @@
 void
 setjobpwd(void)
 {
-    int i, l;
+    int i;
 
     for (i = 1; i < MAXJOB; i++)
-	if (jobtab[i].stat && !jobtab[i].pwd) {
-	    if ((l = strlen(pwd)) >= PATH_MAX)
-		jobtab[i].pwd = ztrdup(pwd + l - PATH_MAX);
-	    else
-		jobtab[i].pwd = ztrdup(pwd);
-	}
+	if (jobtab[i].stat && !jobtab[i].pwd)
+	    jobtab[i].pwd = ztrdup(pwd);
 }
 
 /* print pids for & */



Messages sorted by: Reverse Date, Date, Thread, Author