aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-07 16:27:37 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-07 16:27:37 +0000
commit802a49e4642dc01aa69b2205e1c9276d46810144 (patch)
treee7baff190b7a07152d20513dfcd4f32829bec322
parent42005c34446dc78c590ad196ba2b6226bf09dd68 (diff)
downloadbusybox-w32-802a49e4642dc01aa69b2205e1c9276d46810144.tar.gz
busybox-w32-802a49e4642dc01aa69b2205e1c9276d46810144.tar.bz2
busybox-w32-802a49e4642dc01aa69b2205e1c9276d46810144.zip
Update copyright and close file descriptors (noted by Axel Kittenberger).
git-svn-id: svn://busybox.net/trunk/busybox@3861 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/dd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index d46db82a0..818ab777e 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -3,7 +3,7 @@
3 * Mini dd implementation for busybox 3 * Mini dd implementation for busybox
4 * 4 *
5 * 5 *
6 * Copyright (C) 2000 by Matt Kraai <kraai@alumni.carnegiemellon.edu> 6 * Copyright (C) 2000,2001 Matt Kraai
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
@@ -147,6 +147,12 @@ int dd_main(int argc, char **argv)
147 out_part++; 147 out_part++;
148 } 148 }
149 149
150 if (close (ifd) < 0)
151 perror_msg_and_die("%s", infile);
152
153 if (close (ofd) < 0)
154 perror_msg_and_die("%s", outfile);
155
150 fprintf(stderr, "%ld+%ld records in\n", (long)in_full, (long)in_part); 156 fprintf(stderr, "%ld+%ld records in\n", (long)in_full, (long)in_part);
151 fprintf(stderr, "%ld+%ld records out\n", (long)out_full, (long)out_part); 157 fprintf(stderr, "%ld+%ld records out\n", (long)out_full, (long)out_part);
152 158