1*4882a593SmuzhiyunClose the correct file descriptor 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunhttps://bugs.archlinux.org/task/47713 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunSigned-off-by: Jate Sujjavanich <jatedev@gmail.com> 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunUpstream-Status: Inactive-Upstream [no upstream] 8*4882a593Smuzhiyun 9*4882a593Smuzhiyundiff --git a/zipnote.c b/zipnote.c 10*4882a593Smuzhiyunindex 5e02cb6..996f012 100644 11*4882a593Smuzhiyun--- a/zipnote.c 12*4882a593Smuzhiyun+++ b/zipnote.c 13*4882a593Smuzhiyun@@ -661,7 +661,7 @@ char **argv; /* command line tokens */ 14*4882a593Smuzhiyun if ((r = zipcopy(z)) != ZE_OK) 15*4882a593Smuzhiyun ziperr(r, "was copying an entry"); 16*4882a593Smuzhiyun } 17*4882a593Smuzhiyun- fclose(x); 18*4882a593Smuzhiyun+ fclose(in_file); 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun /* Write central directory and end of central directory with new comments */ 21*4882a593Smuzhiyun if ((c = zftello(y)) == (zoff_t)-1) /* get start of central */ 22*4882a593Smuzhiyun 23