#611 posix:copy-file cannot create symlink to directory

lisp error
open
Bruno Haible
clisp (525)
5
2014-09-03
2011-09-27
Gabor Balazs
No

Based on the comp.lang.lisp discussion:
"creating symlinks to directories in CLISP"
http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/9bed268133f70a3f?hl=en

Problem:

> (posix:copy-file "/tmp/" "/tmp/link" :method :symlink)
*** - PROBE-FILE: No file name given: #P"/tmp/

> (posix:copy-file "/tmp" "/tmp/link" :method :symlink)
*** - PROBE-FILE: "/tmp" names a directory, not a file

Version info:

GNU CLISP 2.49 (2010-07-07) (built 3519331083) (memory 3519302729)
Software: GNU C 4.4.5
gcc -O2 -march=core2 -fomit-frame-pointer -pipe -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -I. -Wl,-O1 -Wl,--as-needed /usr/lib64/libreadline.so -lncurses -ldl /usr/lib64/libavcall.a /usr/lib64/libcallback.a -L/usr/lib64 -lsigsegv -L/usr/lib64 -lc libgnu_cl.a
SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.8
libreadline 6.1
Features:
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP
LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI
GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /usr/lib64/clisp-2.49/
User language: ENGLISH
Machine: X86_64 (X86_64) localhost [127.0.0.1]

Discussion