Robert Luberda wrote:
John Hendrickson wrote:

Hi there!
/*
  * BUG for realpath_(1) (not realpathS(1))
  *
  * $ realpath /var/spool/mail/file/..
  * /mnt/sda2/home/var/mail
  *
  * BUG you can't ".." a file: not supposed to be able to
  * (it will then trick a script into treating file like a dir)

What $SHELL do you use? Is it mksh or some other one?

bash, zsh, ksh, ash, report:
        SHELL=/bin/sh
and csh,
        shell   /bin/tcsh
[ -f /README/.. ] && echo hi
Yes all these shells no difference, same error, shell
subst. is not a lead here
snippy:~> [ -f /README/.. ] && echo hi
(no output)

if it helps i can mail realpathS(1) or look at 'realpath' to
<snip>

Just being curious: does your implementation use realpath(3) library?

no, it's from scratch, but does use readlink(3)

(it avoids all bugs realpath(3) noted, to my understanding)

Thanks Robert  -- John

Regards,
robert




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to