* Re: PATCH: setjobpwd() - PATH_MAX
@ 2000-10-04 9:17 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-10-04 9:17 UTC (permalink / raw)
To: zsh-workers
[ Back again. I'll start answering in no particular order... ]
[ Thanks, Bart. I did. ]
Clint Adams wrote:
> There seems no point in truncating.
... any more. This once used static char[PATH_MAX] buffers in the job
table.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* PATCH: setjobpwd() - PATH_MAX
@ 2000-09-22 22:26 Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2000-09-22 22:26 UTC (permalink / raw)
To: zsh-workers
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 & */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-10-04 9:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-04 9:17 PATCH: setjobpwd() - PATH_MAX Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-09-22 22:26 Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).