Commit d9d0d182 authored by Paul Eggert's avatar Paul Eggert

* fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and

generate a special message for it.  Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
parent 36f13e16
2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
Simplify symlink portability workaround.
* fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
generate a special message for it. Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
* config.in: Regenerate.
* dired.c (Ffile_attributes): Increase size of modes from 10 to 12
......@@ -2325,6 +2325,12 @@ This happens for interactive use with M-x. */)
return Qnil;
}
}
if (errno == ENOSYS)
{
UNGCPRO;
xsignal1 (Qfile_error,
build_string ("Symbolic links are not supported"));
}
report_file_error ("Making symbolic link", list2 (filename, linkname));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment