aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/uudecode.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-03-22 00:26:12 -0500
committerRob Landley <rob@landley.net>2013-03-22 00:26:12 -0500
commit64427a889b424c55e6917e5110e66ba004610fa9 (patch)
treec3ff3f4d1e0c9fbea6b3b545d893c0ee5550691f /toys/pending/uudecode.c
parent5cb3e2683bd8ca23bf8c38e13f3e0d68a642d586 (diff)
downloadtoybox-64427a889b424c55e6917e5110e66ba004610fa9.tar.gz
uuencode/decode tests and tweaks from Erich Plondke.
Diffstat (limited to 'toys/pending/uudecode.c')
-rw-r--r--toys/pending/uudecode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/pending/uudecode.c b/toys/pending/uudecode.c
index 71774ea2..41d9acf3 100644
--- a/toys/pending/uudecode.c
+++ b/toys/pending/uudecode.c
@@ -171,4 +171,5 @@ void uudecode_main(void)
ofd = xcreate(out_filename,O_WRONLY|O_CREAT|O_TRUNC,mode);
free(line);
decoder(ifd,ofd);
+ if (TOYBOX_CLEANUP) close(ofd);
}