[PATCH setxkbmap] Bug in searching config files fixed.

Peter Hutterer peter.hutterer at who-t.net
Tue Feb 15 13:47:53 PST 2011


On Tue, Feb 15, 2011 at 11:51:16PM +0300, Van de Bugger wrote:
> From 791d2ccef997e85c98a647042e5304034eeee65f Mon Sep 17 00:00:00 2001
> From: Van de Bugger <van.de.bugger at gmail.com>
> Date: Tue, 15 Feb 2011 23:46:05 +0300
> Subject: [PATCH setxkbmap] Bug in searching config files fixed.
> 
> ---
>  setxkbmap.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/setxkbmap.c b/setxkbmap.c
> index be3c262..3d3b7d8 100644
> --- a/setxkbmap.c
> +++ b/setxkbmap.c
> @@ -642,7 +642,7 @@ findFileInPath(char *name, char *subdir)
>                    subdir, name);
>              continue;
>          }
> -        fp = fopen(name, "r");
> +        fp = fopen(buf, "r");
>          if ((verbose > 7) || ((!fp) && (verbose > 5)))
>              MSG2("%s file %s\n", (fp ? "Found" : "Didn't find"), buf);
>          if (fp != NULL)
> -- 
> 1.7.4

applied, thanks.
 
Cheers,
  Peter


More information about the xorg-devel mailing list