Browse code

Check file close

git-svn: trunk@1343

Nigel Horne authored on 2005/02/17 07:19:21
Showing 1 changed files
... ...
@@ -21,6 +21,9 @@
21 21
  *
22 22
  * Change History:
23 23
  * $Log: untar.c,v $
24
+ * Revision 1.21  2005/02/16 22:19:21  nigelhorne
25
+ * Check file close
26
+ *
24 27
  * Revision 1.20  2005/02/13 22:25:41  kojm
25 28
  * do not try to continue if there's no space on device
26 29
  *
... ...
@@ -82,7 +85,7 @@
82 82
  * First draft
83 83
  *
84 84
  */
85
-static	char	const	rcsid[] = "$Id: untar.c,v 1.20 2005/02/13 22:25:41 kojm Exp $";
85
+static	char	const	rcsid[] = "$Id: untar.c,v 1.21 2005/02/16 22:19:21 nigelhorne Exp $";
86 86
 
87 87
 #include <stdio.h>
88 88
 #include <errno.h>
... ...
@@ -291,6 +294,7 @@ cli_untar(const char *dir, int desc)
291 291
 			in_block = 0;
292 292
 	}
293 293
 	if(outfile)
294
-		fclose(outfile);
294
+		return fclose(outfile);
295
+
295 296
 	return 0;
296 297
 }