Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compat linux exec arguments weirdness



I wrote:

> Anyone else seeing this ?
> 
> $ uname -a
> NetBSD sheep 6.99.31 NetBSD 6.99.31 (SHEEP) #0: Sat Feb  8 16:56:29 MET 2014  
> onno@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
> $ pkg_info|grep suse_bas
> suse_base-13.1nb1   Linux compatibility package
> $ ls -al /emul/linux/usr/bin/uname
> -rwxr-xr-x  1 root  wheel  30508 Feb  8 08:51 /emul/linux/usr/bin/uname
> $ /emul/linux/usr/bin/uname -a
> Linux sheep 3.11.6 #1 SMP PREEMPT Thu Oct 24 16:23:02 UTC 2013 i686 i686 i386 
> GNU/Linux

[ Stuff about bash and ksh93 skipped ]

$ /emul/linux/usr/bin/uname -bagger
: invalid option -- 'b'
Try ' --help' for more information.

That error output should have been something like
--> uname: invalid option -- 'b'
--> Try 'uname --help' for more information

So, it has nothing to do with the shell as I first
thought but argv[0] getting overwritten somewhere in
the linux emul exec code path.

Onno


Home | Main Index | Thread Index | Old Index