diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/bbs/fhdr_stamp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/bbs/fhdr_stamp.c b/common/bbs/fhdr_stamp.c index 05c9bccf..ac9acb6a 100644 --- a/common/bbs/fhdr_stamp.c +++ b/common/bbs/fhdr_stamp.c @@ -65,7 +65,9 @@ fhdr_stamp(char *fpath, fileheader_t *fh, int type) if (res == -1) return -1; - close(res); + + if (type == STAMP_FILE) + close(res); memset(fh, 0, sizeof(fileheader_t)); strlcpy(fh->filename, ip, sizeof(fh->filename)); |