git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct the path to /sbin/fsck.
[libguestfs.git]
/
daemon
/
file.c
diff --git
a/daemon/file.c
b/daemon/file.c
index
16dfb00
..
f910b94
100644
(file)
--- a/
daemon/file.c
+++ b/
daemon/file.c
@@
-18,8
+18,6
@@
#include <config.h>
#include <config.h>
-#define _GNU_SOURCE /* for futimens(2) and getline(3) */
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-323,7
+321,7
@@
do_file (const char *path)
int r, len, freeit = 0;
char *buf;
int r, len, freeit = 0;
char *buf;
- /*NEED_ROOT (NULL); - no: we allow people to run this on /dev devices. */
+ NEED_ROOT_OR_IS_DEVICE (path, NULL);
ABS_PATH (path, NULL);
if (strncmp (path, "/dev/", 5) == 0)
ABS_PATH (path, NULL);
if (strncmp (path, "/dev/", 5) == 0)