git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Opensuse and zypper detection support
[libguestfs.git]
/
daemon
/
df.c
diff --git
a/daemon/df.c
b/daemon/df.c
index
cce41a0
..
7127c00
100644
(file)
--- a/
daemon/df.c
+++ b/
daemon/df.c
@@
-23,7
+23,7
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
-#include "
../src/
guestfs_protocol.h"
+#include "guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
#include "daemon.h"
#include "actions.h"
@@
-33,7
+33,7
@@
do_df (void)
int r;
char *out, *err;
int r;
char *out, *err;
- NEED_ROOT (
0
, return NULL);
+ NEED_ROOT (, return NULL);
r = command (&out, &err, "df", NULL);
if (r == -1) {
r = command (&out, &err, "df", NULL);
if (r == -1) {
@@
-54,7
+54,7
@@
do_df_h (void)
int r;
char *out, *err;
int r;
char *out, *err;
- NEED_ROOT (
0
, return NULL);
+ NEED_ROOT (, return NULL);
r = command (&out, &err, "df", "-h", NULL);
if (r == -1) {
r = command (&out, &err, "df", "-h", NULL);
if (r == -1) {