mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
udevadm: also return major==0 results for --device-id-of-file
This commit is contained in:
parent
d1bba79592
commit
a5258107d2
@ -213,9 +213,6 @@ static int stat_device(const char *name)
|
||||
if (stat(name, &statbuf) != 0)
|
||||
return -1;
|
||||
|
||||
if (major(statbuf.st_dev) == 0)
|
||||
return -1;
|
||||
|
||||
printf("%d %d\n", major(statbuf.st_dev), minor(statbuf.st_dev));
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user