mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 05:32:55 +00:00
Fix nbd partition id test
Reported-by: David Binderman Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
7c5b6e7c35
commit
a6ee12772a
@ -3018,7 +3018,7 @@ static int nbd_get_partition(const char *src)
|
|||||||
if (!p)
|
if (!p)
|
||||||
return 0;
|
return 0;
|
||||||
p++;
|
p++;
|
||||||
if (*p < '1' && *p > '9')
|
if (*p < '1' || *p > '9')
|
||||||
return 0;
|
return 0;
|
||||||
return *p - '0';
|
return *p - '0';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user