[Libguestfs] [PATCHx7] Misc patches

Jim Meyering jim at meyering.net
Thu Aug 13 14:56:33 UTC 2009


Richard W.M. Jones wrote:

>>From 0790c58e369d8fe77c8d1c6473dd757c63abebab Mon Sep 17 00:00:00 2001
> From: Richard Jones <rjones at trick.home.annexia.org>
> Date: Thu, 13 Aug 2009 14:39:59 +0100
> Subject: [PATCH 3/7] inotify-add-watch does not need to explicitly check for ABS_PATH.
>
> ---
>  daemon/inotify.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/daemon/inotify.c b/daemon/inotify.c
> index 7834dcb..3e314f0 100644
> --- a/daemon/inotify.c
> +++ b/daemon/inotify.c
> @@ -129,7 +129,6 @@ do_inotify_add_watch (const char *path, int mask)
>    char *buf;
>
>    NEED_INOTIFY (-1);
> -  ABS_PATH (path, return -1);
>
>    buf = sysroot_path (path);
>    if (!buf) {

Confirmed.  That's redundant, given "Pathname" here:

    ("inotify_add_watch", (RInt64 "wd", [Pathname "path"; Int "mask"]), 180, [],

ack




More information about the Libguestfs mailing list