mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 16:21:11 +03:00
ata_id: make sure, we do not have slashes in values
This commit is contained in:
parent
5317ca29e5
commit
97f37a7e78
@ -115,8 +115,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
udev_util_replace_whitespace((char *) id.model, model, 40);
|
||||
udev_util_replace_chars(model, NULL);
|
||||
udev_util_replace_whitespace((char *) id.serial_no, serial, 20);
|
||||
udev_util_replace_chars(serial, NULL);
|
||||
udev_util_replace_whitespace((char *) id.fw_rev, revision, 8);
|
||||
udev_util_replace_chars(revision, NULL);
|
||||
|
||||
if (export) {
|
||||
if ((id.config >> 8) & 0x80) {
|
||||
|
Loading…
Reference in New Issue
Block a user