Opened 6 years ago

Closed 6 years ago

#676 closed defect (fixed)

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

Reported by: vicgat Owned by: bruno
Priority: normal Milestone: 3.0.4
Component: mindi Version: 3.0.3
Severity: normal Keywords: gawk RHEL
Cc: vicgat

Description

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

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

../../bin/gawk
# 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 vicgat 6 years ago.
tests on RHEL (problem) and on SLES (no problem)

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by vicgat

Other cases where it is a problem :

/usr/lib/libnss_compat.so -> ../../lib/libnss_compat.so.2

/usr/lib/libnss_files.so -> ../../lib/libnss_files.so.2

comment:2 Changed 6 years ago by vicgat

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.

Changed 6 years ago by vicgat

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

comment:3 Changed 6 years ago by bruno

  • Resolution set to fixed
  • Status changed from new to closed

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.