← Commit list

3eeab3b23

Matt Kraai
Matt Kraai
2001-12-07
FAILED Duration: 338s

Subject

Update copyright and close file descriptors (noted by Axel Kittenberger).

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/dd.c+7 -1
@@ -3,7 +3,7 @@
* Mini dd implementation for busybox
*
*
- * Copyright (C) 2000 by Matt Kraai <[email protected]>
+ * Copyright (C) 2000,2001 Matt Kraai
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -147,6 +147,12 @@ int dd_main(int argc, char **argv)
out_part++;
}
+ if (close (ifd) < 0)
+ perror_msg_and_die("%s", infile);
+
+ if (close (ofd) < 0)
+ perror_msg_and_die("%s", outfile);
+
fprintf(stderr, "%ld+%ld records in\n", (long)in_full, (long)in_part);
fprintf(stderr, "%ld+%ld records out\n", (long)out_full, (long)out_part);