From d9d0d182da35312ed0d7a9859b9c6a03994d86d8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 25 Feb 2011 13:20:06 -0800 Subject: [PATCH] * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and generate a special message for it. Suggested by Eli Zaretskii in . --- src/ChangeLog | 3 +++ src/fileio.c | 6 ++++++ 2 files changed, 9 insertions(+) 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)); } -- 2.39.5