X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util-linux%2Ffdflush.c;h=56ea2244d7444189fb2b13c16325c608268a695e;hb=f93a95de6960b1d1977a934aafd3e9a8b8ea1765;hp=0b154c8a605fefc13577ff4668a3a8257675f32d;hpb=e49d5ecbbe51718fa925b6890a735e5937cc2aa2;p=oweals%2Fbusybox.git diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index 0b154c8a6..56ea2244d 100644 --- a/util-linux/fdflush.c +++ b/util-linux/fdflush.c @@ -33,8 +33,8 @@ extern int fdflush_main(int argc, char **argv) int value; int fd; - if (argc <= 1 || **(argv++) == '-') { - usage("fdflush device\n"); + if (argc <= 1 || **(++argv) == '-') { + usage("fdflush device\n\nForce floppy disk drive to detect disk change\n"); } fd = open(*argv, 0); @@ -44,7 +44,9 @@ extern int fdflush_main(int argc, char **argv) } value = ioctl(fd, FDFLUSH, 0); - close(fd); + /* Don't bother closing. Exit does + * that, so we can save a few bytes */ + /* close(fd); */ if (value) { perror(*argv);