]> code.delx.au - gnu-emacs/commitdiff
* fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 21:20:06 +0000 (13:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 21:20:06 +0000 (13:20 -0800)
generate a special message for it.  Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.

src/ChangeLog
src/fileio.c

index 0bfadcf1a911a648dfc3153e60d4f289ee4676c1..a8de7268673762c019fa394aabc4a3e4511c1c61 100644 (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
index 26006d63052bbeb0c462ca952d9c61645013cf8c..18e9dbe9680db7f97026d7cc97da0406099c8324 100644 (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));
     }