diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-04-14 02:13:28 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-04-14 02:13:28 +0200 |
commit | 434198173720c2e8f5c79e8c00790b250e5a1942 (patch) | |
tree | c69e116dc51a0674af0e4e867f23356376026382 /seqreader.c | |
parent | 8464f1a53d96195f9c499461fec8072933606569 (diff) | |
download | fwbench-434198173720c2e8f5c79e8c00790b250e5a1942.tar.gz fwbench-434198173720c2e8f5c79e8c00790b250e5a1942.tar.bz2 fwbench-434198173720c2e8f5c79e8c00790b250e5a1942.tar.xz fwbench-434198173720c2e8f5c79e8c00790b250e5a1942.zip |
Properly check for devices in seqreader
Diffstat (limited to 'seqreader.c')
-rw-r--r-- | seqreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seqreader.c b/seqreader.c index e0afe67..68bcdca 100644 --- a/seqreader.c +++ b/seqreader.c @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { exit(0); } - if (!strstr(argv[0], "/dev/")) { + if (strstr(argv[1], "/dev/")) { int fd = open(argv[1], O_RDONLY|O_NOATIME|O_LARGEFILE/*|O_DIRECT*/, 0); if (fd < 0) { printf("Unable to open device %s\n", argv[1]); |