1
0
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:
Kay Sievers 2007-11-09 17:05:34 +01:00
parent d1bba79592
commit a5258107d2

View File

@ -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;
}