jed-users mailing list

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

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


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]