chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1bba79
)
udevadm: also return major==0 results for --device-id-of-file
author
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 9 Nov 2007 16:05:34 +0000
(17:05 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 9 Nov 2007 16:05:34 +0000
(17:05 +0100)
udevinfo.c
patch
|
blob
|
history
diff --git
a/udevinfo.c
b/udevinfo.c
index 3fc40faf143231952f4ae8ac4d57d9346660e542..948aaccc36f95eeb5d436da1d232b9bb35ffe5ed 100644
(file)
--- a/
udevinfo.c
+++ b/
udevinfo.c
@@
-213,9
+213,6
@@
static int stat_device(const char *name)
if (stat(name, &statbuf) != 0)
return -1;
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;
}
printf("%d %d\n", major(statbuf.st_dev), minor(statbuf.st_dev));
return 0;
}