]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: fix typo in cdrom detection
authorKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 11:34:53 +0000 (12:34 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 11:34:53 +0000 (12:34 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/sfdisk.c

index a1eafb77ea1d9bee81bde60a98df90ea01158877..23e880b2b8cfc178fb37a81435123f1f535504fd 100644 (file)
@@ -2492,7 +2492,7 @@ static int is_ide_cdrom_or_tape(char *device)
 {
        int fd, ret;
 
-       if ((fd = open(device, O_RDONLY) < 0))
+       if ((fd = open(device, O_RDONLY)) < 0)
                return 0;
        ret = blkdev_is_cdrom(fd);