Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: setjobpwd() - PATH_MAX
- X-seq: zsh-workers 12860
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: setjobpwd() - PATH_MAX
- Date: Fri, 22 Sep 2000 18:26:33 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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