ctld: Permit valid integer LUN device types
Fixes: 2e0caa7c7e ("libutil: Really fix expand_number(3)")
Sponsored by: Chelsio Communications
This commit is contained in:
@@ -427,8 +427,8 @@ lun_set_device_type(const char *value)
|
||||
if (errstr != NULL) {
|
||||
log_warnx("invalid device-type \"%s\" for lun \"%s\"", value,
|
||||
lun->l_name);
|
||||
return (false);
|
||||
}
|
||||
return (false);
|
||||
}
|
||||
|
||||
lun->l_device_type = device_type;
|
||||
|
||||
Reference in New Issue
Block a user