From: Paul Eggert Date: Fri, 25 Feb 2011 21:20:06 +0000 (-0800) Subject: * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~677^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d9d0d182da35312ed0d7a9859b9c6a03994d86d8;p=emacs.git * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and generate a special message for it. Suggested by Eli Zaretskii in . --- diff --git a/src/ChangeLog b/src/ChangeLog index 0bfadcf1a91..a8de7268673 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,9 @@ 2011-02-25 Paul Eggert Simplify symlink portability workaround. + * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and + generate a special message for it. Suggested by Eli Zaretskii in + . * config.in: Regenerate. * dired.c (Ffile_attributes): Increase size of modes from 10 to 12 diff --git a/src/fileio.c b/src/fileio.c index 26006d63052..18e9dbe9680 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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)); }