diff options
author | harti <harti@FreeBSD.org> | 2004-11-25 10:01:26 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-11-25 10:01:26 +0000 |
commit | 0083a3a1f9faf52a2685157969f9810ee3675a84 (patch) | |
tree | a248c2c621583d2bdd082d0c72936272d50495bb /tools | |
parent | dc8dcdc3f335be2f9cef536af14cf3f7af38e5d7 (diff) | |
download | FreeBSD-src-0083a3a1f9faf52a2685157969f9810ee3675a84.zip FreeBSD-src-0083a3a1f9faf52a2685157969f9810ee3675a84.tar.gz |
Fix a very long-standing error in handling .SHELL targets: this target
uses the brk_string function to parse the line. That function uses static
storage for both the expanded string and the returned argv[] vector.
The JobParseShell function simply stored away pointers into this static
storage. On the next use of something like ${FOO:O} this storage would
get overwritten with fatal results.
This also allows us to make the shells[] array const bringing us one step
further in making make WARNS=4 ready.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions