diff toys/pending/uudecode.c @ 828:1fdaba9a7124

uuencode/decode tests and tweaks from Erich Plondke.
author Rob Landley <rob@landley.net>
date Fri, 22 Mar 2013 00:26:12 -0500
parents 0429050a224b
children 1c61f2827bf8
line wrap: on
line diff
--- a/toys/pending/uudecode.c	Thu Mar 21 23:23:49 2013 -0500
+++ b/toys/pending/uudecode.c	Fri Mar 22 00:26:12 2013 -0500
@@ -171,4 +171,5 @@
   ofd = xcreate(out_filename,O_WRONLY|O_CREAT|O_TRUNC,mode);
   free(line);
   decoder(ifd,ofd);
+  if (TOYBOX_CLEANUP) close(ofd);
 }