sfdisk: fix typo in cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-02-02 12:34:53 +01:00
parent ad655c88ff
commit 6ce0b7d8a7
1 changed files with 1 additions and 1 deletions

View 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);