jed-users mailing list

[2015 Date Index] [2015 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: Bug report - file handling and symlinks


On Fri 2015-06-19 (12:19), Jason Noakes wrote:

> The root cause is that Jed is compacting "/tmp/jed/a/../../dir" into
> "/tmp/dir" without realizing "/tmp/jed/a" is a symlink (src/file.c,
> src/sysdep.c).

The Linux coreutils have the program "readlink", which gives:

framstag@diaspora:/tmp: readlink -f /tmp/jed/b/foo.txt 
/tmp/jed/dir/foo.txt


Whereas the jed function expand_symlink() gives:

S-Lang> message(expand_symlink("/tmp/jed/b/foo.txt"))
/tmp/dir/foo.txt


A bug, indeed.

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum IZUS/TIK         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<CAN2+FE+U8KsQJ5N=N_Yz0fRLR+1Q01udBkAcqQ+z4jVgyR96MQ@xxxxxxxxxxxxxx>
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2015 date index] [2015 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]