diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-09-22 22:28:05 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-09-22 22:28:05 +0000 |
commit | 4225207e4cf843a77e109c23580ca6624b56cf92 (patch) | |
tree | 0ddd650bf07fb04f071e8172980bee7e643d18e9 /Src | |
parent | 2a625db39df5e5e5f72556f0cd4a02005115c50f (diff) | |
download | zsh-4225207e4cf843a77e109c23580ca6624b56cf92.tar.gz zsh-4225207e4cf843a77e109c23580ca6624b56cf92.tar.xz zsh-4225207e4cf843a77e109c23580ca6624b56cf92.zip |
12860: don't limit size of pwd in job table
Diffstat (limited to 'Src')
-rw-r--r-- | Src/jobs.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index ea96200eb..ca4b12004 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -982,15 +982,11 @@ initjob(void) 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 & */ |