Advanced search
Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings maemo SDK+
Summary Forums Tracker Lists Tasks Docs News SCM Files

Bugs: Browse | Download .csv

[#4927] exec() of symlink pointing to native binary results in incorrect argv0

Please login

State:
Open
Date:
2009-12-23 10:32
Priority:
3
Submitted By:
Steven Luo (steven676)
Assigned To:
Nobody (None)
Summary:
exec() of symlink pointing to native binary results in incorrect argv0

Detailed description
steven@sandcity:~$ maemo-sdk show rootstrap
fremantle5.0minimal_i386
steven@sandcity:~$ sb2 -e
[SB2 emulate fremantle5.0minimal_i386] steven@sandcity steven $ ls -l /bin/pidof
lrwxrwxrwx 1 steven steven 16 Dec 18 00:21 /bin/pidof -> ../sbin/killall5
[SB2 emulate fremantle5.0minimal_i386] steven@sandcity steven $ pidof init
killall5: only one argument, a signal number, allowed

It looks like scratchbox2 is fully resolving the symlink and setting argv0 to the path to the binary, which results
in massive breakage (especially since large parts of /usr/bin consists of symlinks to maemo-invoker).

Followup

No Followups Have Been Posted

Attached Files:

Name Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item


Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment