Opened 12 years ago
Closed 12 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 |
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)
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 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.
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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.
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