diff options
author | obrien <obrien@FreeBSD.org> | 2002-04-13 09:10:07 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-04-13 09:10:07 +0000 |
commit | 9d111f7a74dd77f07a7891acde89cb7d1ad552f0 (patch) | |
tree | 12e41ee5f23700945461a17a01780079b9f96623 /usr.bin/make | |
parent | b2386b0cdaa72f795a9d130ff4d35e91d7f9b143 (diff) | |
download | FreeBSD-src-9d111f7a74dd77f07a7891acde89cb7d1ad552f0.zip FreeBSD-src-9d111f7a74dd77f07a7891acde89cb7d1ad552f0.tar.gz |
Check to make sure fdopen() succeeds in make(1).
Submitted by: jmallett
Inspired by: NetBSD
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/job.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index b1aad95..b3a5e82 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -818,6 +818,8 @@ JobFinish(job, status) * output file as well. */ out = fdopen(job->outFd, "w"); + if (out == NULL) + Punt("Cannot fdopen"); } else { out = stdout; } |