Package: realpath Version: 1.9.21 Severity: normal
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) * * $ realpaths /var/spool/mail/file/.. * lstat: /mnt/sda2/home/var/mail/file/..: Not a directory * * $ ls /mnt/sda2/home/var/mail/file/.. * ls: /mnt/sda2/home/var/mail/file/..: Not a directory */ John Hendrickson, deb...@sourceforge.net p.s. It shouldn't try to remove ".." until it's done with all else because doing so is very complex. I wrote realpaths(1) not knowing of realpath, and found that while testing. In other tests, like "realpath(s) `find /usr/lib`" show no diff. I've made no effort to syntax test realpath_ I need to do more on realpaths than I have if I use any time at all :) /----------------------\ | my junk | \----------------------/ fledged but simple, checks malloc need every possible incident realpaths [opts] file(s) -t n compat: specify too_many for symlinks. -m n compat: specify effective MAXPATHLEN / max_path -x compat: do not quit if max_path is exceeded, malloc it. -f compat: like readlink(1) canon: but inverted (default on). -v verbose, shows whole trace of search. if it helps i can mail realpathS(1) or look at 'realpath' to see what is going wrong. it's probably simple, as I said earlier. holaa! have a good one -- John -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.10-k7 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages realpath depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org