From: Juanma Barranquero Date: Thu, 17 Mar 2011 15:44:02 +0000 (+0100) Subject: src/xfaces.c (Fx_load_color_file): Read color file from absolute filename. X-Git-Tag: emacs-pretest-24.0.90~104^3~97 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45763476fcc967a750bb2abe3bd7a43b7a19e537;p=emacs.git src/xfaces.c (Fx_load_color_file): Read color file from absolute filename. Fixes: debbugs:8250 --- diff --git a/src/ChangeLog b/src/ChangeLog index 75958169951..49b37a843b6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-17 Juanma Barranquero + + * xfaces.c (Fx_load_color_file): + Read color file from absolute filename (bug#8250). + 2011-03-11 Juanma Barranquero Backport revno:103582 from trunk. diff --git a/src/xfaces.c b/src/xfaces.c index e9e677d1b19..9956ef55842 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6625,7 +6625,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) CHECK_STRING (filename); abspath = Fexpand_file_name (filename, Qnil); - fp = fopen (SDATA (filename), "rt"); + fp = fopen (SDATA (abspath), "rt"); if (fp) { char buf[512];