projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e262520
)
libblkid-tiny: allow probing files
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Aug 2013 11:52:51 +0000
(13:52 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Aug 2013 11:52:51 +0000
(13:52 +0200)
libblkid-tiny/libblkid-tiny.c
patch
|
blob
|
history
diff --git
a/libblkid-tiny/libblkid-tiny.c
b/libblkid-tiny/libblkid-tiny.c
index 623ef6947fe5958af4affbfd043b07913d61572d..dc18aa7b9f53aaec7ae47a8f472bffbc4be91962 100644
(file)
--- a/
libblkid-tiny/libblkid-tiny.c
+++ b/
libblkid-tiny/libblkid-tiny.c
@@
-171,7
+171,7
@@
int probe_block(char *block, struct blkid_struct_probe *pr)
struct stat s;
int i;
- if (stat(block, &s) ||
!S_ISBLK(s.st_mode
))
+ if (stat(block, &s) ||
(!S_ISBLK(s.st_mode) && !S_ISREG(s.st_mode)
))
return -1;
pr->err = -1;
@@
-215,4
+215,3
@@
int probe_block(char *block, struct blkid_struct_probe *pr)
return 0;
}
-