Opened 11 years ago

Closed 11 years ago

#676 closed defect (fixed)

The ".." substitution in mindi works only for one case

Reported by: victor gattegno Owned by: Bruno Cornec
Priority: normal Milestone: 3.0.4
Component: mindi Version: 3.0.3
Severity: normal Keywords: gawk RHEL
Cc: victor gattegno


There is a ".." substitution in mindi, created here, but it works only for one case, and it doesn't work for RHEL 4 and RHEL 3 gawk.

Exemple, for gawk in RHEL 4 :

# whereis gawk | xargs ls -l

-rwxr-xr-x  1 root root 252380 Nov  4  2004 /bin/gawk
lrwxrwxrwx  1 root root     14 Apr  6  2006 /usr/bin/gawk -> ../../bin/gawk
-rw-r--r--  2 root root  24639 Nov  4  2004 /usr/share/man/man1/gawk.1.gz

# mindi --readalllink /usr/bin/gawk

# echo "../../bin/gawk" | perl -pi -e 's|([^/]+)/([^/]+)/\.\./([^/]+)|$1/$3|'    

# echo "/usr/test/../bin/gawk" | perl -pi -e 's|([^/]+)/([^/]+)/\.\./([^/]+)|$1/$3|'

/usr/bin/gawk        (it works only for that test case)

Attachments (1)

comp gawk.htm (3.9 KB ) - added by victor gattegno 11 years ago.
tests on RHEL (problem) and on SLES (no problem)

Download all attachments as: .zip

Change History (4)

comment:1 by victor gattegno, 11 years ago

Other cases where it is a problem :

/usr/lib/ -> ../../lib/

/usr/lib/ -> ../../lib/

comment:2 by victor gattegno, 11 years ago

On RHEL 6 (and surely on RHEL 5) there are also other libs under /usr/lib with links to "../../xxxxxxxx", then that mindi problem will occur with it too.

by victor gattegno, 11 years ago

Attachment: comp gawk.htm added

tests on RHEL (problem) and on SLES (no problem)

comment:3 by Bruno Cornec, 11 years ago

Resolution: fixed
Status: newclosed

Fixed now with rev [3103] ! Thanks for your report. Will be in next mindi 2.1.5

Note: See TracTickets for help on using tickets.