- Subject: [jed-users] Bug report - file handling and symlinks
- From: Jason Noakes <jjnoakes@xxxxxxxxx>
- Date: Fri, 19 Jun 2015 12:19:56 -0400
Is this the right venue for a bug report?
$ mkdir -p /tmp/jed/c/sub /tmp/jed/dir
$ ln -s /tmp/jed/a/../../dir /tmp/jed/b
$ ln -s c/sub /tmp/jed/a
$ echo "Hello" > /tmp/jed/dir/foo.txt
$ echo "File exists at /tmp/jed/b/foo.txt:"
$ cat /tmp/jed/b/foo.txt
$ echo "Press ENTER to run jed on /tmp/jed/b/foo.txt and see it fail"
$ read IGNORE
$ jed /tmp/jed/b/foo.txt
$ rm -rf /tmp/jed
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).
~JJ
--
~~ Jason J. Noakes
~~ jjnoakes@xxxxxxxxx
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2015 date index]
[2015 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]