]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - misc-utils/wipefs.c
login: add support for directories in MOTD_FILE=
[thirdparty/util-linux.git] / misc-utils / wipefs.c
index be728279bd41f862923a73fcbca2dda536756800..2a16d62229cef7f7f5ee6858ba8a3ce05e8a56cb 100644 (file)
@@ -386,7 +386,7 @@ new_probe(const char *devname, int mode)
                return NULL;
 
        if (mode) {
-               int fd = open(devname, mode);
+               int fd = open(devname, mode | O_NONBLOCK);
                if (fd < 0)
                        goto error;
 
@@ -658,6 +658,9 @@ usage(void)
 
        printf(USAGE_HELP_OPTIONS(21));
 
+       fputs(USAGE_ARGUMENTS, stdout);
+       printf(USAGE_ARG_SIZE(_("<num>")));
+
        fputs(USAGE_COLUMNS, stdout);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(stdout, " %8s  %s\n", infos[i].name, _(infos[i].help));