* 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>.
This commit is contained in:
Paul Eggert 2011-02-25 13:20:06 -08:00
parent 36f13e1667
commit d9d0d182da
2 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,9 @@
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

View file

@ -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));
}