fdisk: fix cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-02-01 13:42:08 +01:00
parent 1f19513b72
commit 1c6b33784b
1 changed files with 1 additions and 1 deletions

View File

@ -2753,7 +2753,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);