git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistent use of 'void *opaque' to refer to opaque pointer in C API.
[libguestfs.git]
/
daemon
/
file.c
diff --git
a/daemon/file.c
b/daemon/file.c
index
a55c606
..
da899b6
100644
(file)
--- a/
daemon/file.c
+++ b/
daemon/file.c
@@
-581,8
+581,13
@@
do_file (const char *path)
}
}
}
}
+ /* Which flags to use? For /dev paths, follow links because
+ * /dev/VG/LV is a symbolic link.
+ */
+ const char *flags = is_dev ? "-zbsL" : "-zb";
+
char *out, *err;
char *out, *err;
- int r = command (&out, &err, "file",
"-zbs"
, path, NULL);
+ int r = command (&out, &err, "file",
flags
, path, NULL);
free (buf);
if (r == -1) {
free (buf);
if (r == -1) {