git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New API: get-umask, returns the current umask (RHBZ#582891).
[libguestfs.git]
/
daemon
/
df.c
diff --git
a/daemon/df.c
b/daemon/df.c
index
0a7303c
..
b5c4980
100644
(file)
--- a/
daemon/df.c
+++ b/
daemon/df.c
@@
-1,5
+1,5
@@
/* libguestfs - the guestfsd daemon
/* libguestfs - the guestfsd daemon
- * Copyright (C) 2009 Red Hat Inc.
+ * Copyright (C) 2009 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-28,16
+28,16
@@
#include "actions.h"
char *
#include "actions.h"
char *
-do_df ()
+do_df (
void
)
{
int r;
char *out, *err;
{
int r;
char *out, *err;
- NEED_ROOT (NULL);
+ NEED_ROOT (
return
NULL);
r = command (&out, &err, "df", NULL);
if (r == -1) {
r = command (&out, &err, "df", NULL);
if (r == -1) {
- reply_with_error ("
df:
%s", err);
+ reply_with_error ("%s", err);
free (out);
free (err);
return NULL;
free (out);
free (err);
return NULL;
@@
-49,16
+49,16
@@
do_df ()
}
char *
}
char *
-do_df_h ()
+do_df_h (
void
)
{
int r;
char *out, *err;
{
int r;
char *out, *err;
- NEED_ROOT (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) {
- reply_with_error ("
df -h:
%s", err);
+ reply_with_error ("%s", err);
free (out);
free (err);
return NULL;
free (out);
free (err);
return NULL;