when system does not support them.
+2003-05-07 Jason Rumney <jasonr@gnu.org>
+
+ * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
+ when system does not support them.
+
2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
* fileio.c (Qwrite_region_annotate_functions): New var.
(filename)
Lisp_Object filename;
{
-#ifdef S_IFLNK
- char *buf;
- int bufsize;
- int valsize;
- Lisp_Object val;
Lisp_Object handler;
CHECK_STRING (filename);
if (!NILP (handler))
return call2 (handler, Qfile_symlink_p, filename);
+#ifdef S_IFLNK
+ {
+ char *buf;
+ int bufsize;
+ int valsize;
+ Lisp_Object val;
+
filename = ENCODE_FILE (filename);
bufsize = 50;
xfree (buf);
val = DECODE_FILE (val);
return val;
+ }
#else /* not S_IFLNK */
return Qnil;
#endif /* not S_IFLNK */