[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCHx7] Misc patches



Richard W.M. Jones wrote:

>>From 715f3083ad7625bca182fd1d87e20f56c5b6752b Mon Sep 17 00:00:00 2001
> From: Richard Jones <rjones trick home annexia org>
> Date: Thu, 13 Aug 2009 15:00:38 +0100
> Subject: [PATCH 7/7] mount: Check mountpoints are absolute paths.
>
> ---
>  daemon/mount.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/daemon/mount.c b/daemon/mount.c
> index d1b26fa..f593812 100644
> --- a/daemon/mount.c
> +++ b/daemon/mount.c
> @@ -48,6 +48,8 @@ do_mount_vfs (const char *options, const char *vfstype,
>    char *mp;
>    char *error;
>
> +  ABS_PATH (mountpoint, return -1);
> +
>    is_root = strcmp (mountpoint, "/") == 0;
>
>    if (!root_mounted && !is_root) {

Looks fine.
ACK


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]