changeset 23141:9676fa7e02bf

(x_create_bitmap_from_file): Fail immediately if magic.
author Karl Heuer <kwzh@gnu.org>
date Sat, 29 Aug 1998 15:55:28 +0000
parents 17ad9953ff42
children 98c430cac424
files src/xfns.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Aug 29 01:26:19 1998 +0000
+++ b/src/xfns.c	Sat Aug 29 15:55:28 1998 +0000
@@ -590,6 +590,9 @@
   fd = openp (Vx_bitmap_file_path, file, "", &found, 0);
   if (fd < 0)
     return -1;
+  /* XReadBitmapFile won't handle magic file names.  */
+  if (fd == 0)
+    return -1;
   close (fd);
 
   filename = (char *) XSTRING (found)->data;