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 Marathi translations (RHBZ#561671).
[libguestfs.git]
/
daemon
/
mknod.c
diff --git
a/daemon/mknod.c
b/daemon/mknod.c
index
6ff88ef
..
46a1839
100644
(file)
--- a/
daemon/mknod.c
+++ b/
daemon/mknod.c
@@
-29,6
+29,21
@@
#include "../src/guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
#include "../src/guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
+#include "optgroups.h"
+
+#ifdef HAVE_MKNOD
+int
+optgroup_mknod_available (void)
+{
+ return 1;
+}
+#else
+int
+optgroup_mknod_available (void)
+{
+ return 0;
+}
+#endif
int
do_mknod (int mode, int devmajor, int devminor, const char *path)
int
do_mknod (int mode, int devmajor, int devminor, const char *path)
@@
-47,8
+62,7
@@
do_mknod (int mode, int devmajor, int devminor, const char *path)
return 0;
#else
return 0;
#else
- reply_with_error ("%s is not available", __func__);
- return -1;
+ NOT_AVAILABLE (-1);
#endif
}
#endif
}