git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: diagnose socket write failure
[libguestfs.git]
/
daemon
/
inotify.c
diff --git
a/daemon/inotify.c
b/daemon/inotify.c
index
2f22f52
..
3e314f0
100644
(file)
--- a/
daemon/inotify.c
+++ b/
daemon/inotify.c
@@
-51,7
+51,7
@@
do_inotify_init (int max_events)
{
FILE *fp;
{
FILE *fp;
- NEED_ROOT (-1);
+ NEED_ROOT (
return
-1);
if (max_events < 0) {
reply_with_error ("inotify_init: max_events < 0");
if (max_events < 0) {
reply_with_error ("inotify_init: max_events < 0");
@@
-123,13
+123,12
@@
do_inotify_close (void)
}
int64_t
}
int64_t
-do_inotify_add_watch (char *path, int mask)
+do_inotify_add_watch (c
onst c
har *path, int mask)
{
int64_t r;
char *buf;
NEED_INOTIFY (-1);
{
int64_t r;
char *buf;
NEED_INOTIFY (-1);
- ABS_PATH (path, return -1);
buf = sysroot_path (path);
if (!buf) {
buf = sysroot_path (path);
if (!buf) {