]> git.eshelyaron.com Git - emacs.git/commitdiff
src/xfaces.c (Fx_load_color_file): Read color file from absolute filename.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 17 Mar 2011 15:44:02 +0000 (16:44 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 17 Mar 2011 15:44:02 +0000 (16:44 +0100)
Fixes: debbugs:8250
src/ChangeLog
src/xfaces.c

index 759581699512bd516a930bcb5dfafc50cfb4b3a8..49b37a843b696aab6faaed6a8a668539b9bb2128 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-17  Juanma Barranquero  <lekktu@gmail.com>
+
+       * xfaces.c (Fx_load_color_file):
+       Read color file from absolute filename (bug#8250).
+
 2011-03-11  Juanma Barranquero  <lekktu@gmail.com>
 
        Backport revno:103582 from trunk.
index e9e677d1b192105397fb1ff29c9f3c7069e4237e..9956ef55842b07a02bb1fcd951f846109b343c99 100644 (file)
@@ -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];