diff options
Diffstat (limited to 'soltools/mkdepend/main.c')
-rw-r--r-- | soltools/mkdepend/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index de5b66256d1e..a786f5a4d7f6 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -718,8 +718,9 @@ void redirect(line, makefile) #if defined(USGISH) || defined(_SEQUENT_) || defined(USE_CHMOD) chmod(makefile, st.st_mode); #else - fchmod(fileno(fdout), st.st_mode); + fchmod(fileno(fdout), st.st_mode); #endif /* USGISH */ + fclose(fdin); } #if NeedVarargsPrototypes |