Opened 8 years ago

Closed 8 years ago

#151 closed defect (fixed)

cups-filters: Fix symlinks to executables

Reported by: dmik Owned by: Silvan Scherrer
Priority: major Milestone:
Component: cups Version:
Severity: medium Keywords:
Cc:

Description (last modified by dmik)

Turns out that cups makefiles creates a lot of symlinks to executables (e.g. /@unixroot/usr/bin/driverless pointing to /@unixroot/usr/lib/cpus/driver/driverless) but they lack the .exe extension which makes these symlinks completely broken (i.e. the proper file for the above case is /@unixroot/usr/lib/cpus/driver/driverless.exe).

Please note that it's enough to only fix the link's target — the link itself doesn't need an .exe extension in order to work from under sh. It's even desirable that the link itself doesn't have an .exe extension — this will avoid recognising it as an executable by native OS/2 tools like CMD.EXE that don't support kLIBC symlinks so they will fail to execute it anyway.

So, in the above case the fix is to make /@unixroot/usr/bin/driverless point to /@unixroot/usr/lib/cpus/driver/driverless.exe, but no need to add .exe to the symlink itself.

Change History (4)

comment:1 by Silvan Scherrer, 8 years ago

Owner: set to Silvan Scherrer
Status: newaccepted
Summary: cups: Fix symlinks to executablescups-filters: Fix symlinks to executables

comment:2 by dmik, 8 years ago

Description: modified (diff)

comment:3 by Silvan Scherrer, 8 years ago

cups fixed in r2183

comment:4 by Silvan Scherrer, 8 years ago

Resolution: fixed
Status: acceptedclosed

cups-filters fixed in r2184

Note: See TracTickets for help on using tickets.