From 434198173720c2e8f5c79e8c00790b250e5a1942 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 14 Apr 2012 02:13:28 +0200 Subject: Properly check for devices in seqreader --- seqreader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seqreader.c') 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]); -- cgit v1.2.3