X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=0a3529d08425fa53bb3319a52ad319079a6e3cbd;hb=ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe;hp=97eac4363bdcb277ca0fca8935b71a74ce2ce777;hpb=2d7760d1dbbc742a0699b959ffcd8742b9db9e2c;p=fio.git diff --git a/init.c b/init.c index 97eac436..0a3529d0 100644 --- a/init.c +++ b/init.c @@ -431,7 +431,9 @@ static int exists_and_not_file(const char *filename) if (lstat(filename, &sb) == -1) return 0; - if (S_ISREG(sb.st_mode)) + /* \\.\ is the device namespace in Windows, where every file + * is a device node */ + if (S_ISREG(sb.st_mode) && strncmp(filename, "\\\\.\\", 4) != 0) return 0; return 1; @@ -1224,7 +1226,7 @@ int parse_options(int argc, char *argv[]) if (exec_profile) return 0; - log_err("No jobs defined(s)\n\n"); + log_err("No jobs(s) defined\n\n"); usage(argv[0]); return 1; }