lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 28 Jan 2008 23:10:46 +0200
From:	Adrian Bunk <bunk@...nel.org>
To:	Mike Frysinger <vapier@...too.org>
Cc:	ltp-list@...ts.sourceforge.net, risrajak@...ibm.com,
	linux-kernel@...r.kernel.org
Subject: Re: [LTP] [TEST] : LTP Build failure on 2.6.24 kernel

On Mon, Jan 28, 2008 at 03:43:16PM -0500, Mike Frysinger wrote:
> On Monday 28 January 2008, Adrian Bunk wrote:
> > On Mon, Jan 28, 2008 at 06:53:15AM -0500, Mike Frysinger wrote:
> > > On Monday 28 January 2008, Rishikesh K. Rajak wrote:
> > > > Here i am getting failure on the x86_64 machine with new kernel.
> > > >
> > > > Here is the uname for that machine:
> > > >
> > > > rishi@:~/ltp-full-20071231# uname -a
> > > > Linux rishi.in.ibm.com 2.6.24 #1 SMP PREEMPT Mon Jan 28 06:47:28 UTC
> > > > 2008 x86_64 GNU/Linux
> > >
> > > i'm guessing you're using ubuntu and thus dash is your /bin/sh ...
> > > shouldnt be a 2.6.24 issue
> > >
> > > > make[4]: Entering directory
> > > > `/root/ltp-full-20071231/testcases/network/tcp_cmds/ftp'
> > > > ../../generate.sh
> > > > ../../generate.sh: 60: arith: syntax error: "cnt=cnt-1"
> > >
> > > sadly, this is becoming a FAQ.  ubuntu ships a broken /bin/sh (dash) and
> > > thus some LTP scripts fall apart.  i would prefer to not change the
> > > scripts as the message is simple in LTP: fix your shell, dont add hacks
> > > to LTP.  otherwise we slowly back ourselves into this corner with the
> > > shell scripts where we try to support every craptastic shell out there
> > > and we're afraid to make any changes because we dont know what crappy
> > > shell is going to drop a brick.  LTP scripts are written to be POSIX
> > > complaint and only POSIX complaint shells should be provided by /bin/sh.
> >
> > You better fulfil your claim "LTP scripts are written to be POSIX
> > complaint" before complaining about shells being unhappy with your
> > script. E.g. where in IEEE 1003.1-2004 is the "local" you use specified?
> 
> yes, local is a bsd extension not in POSIX.  it has been implemented by every 
> shell so far though.  as soon as someone complains, i'll be more than happy 
> to fix it.

David Korn's ksh93 (e.g. shipped in the Debian "ksh" package) disproves 
your claim "it has been implemented by every shell so far".

> > Or instead of working on making your script using only the stuff
> > specified in IEEE 1003.1-2004 you could simply replace the #!/bin/sh at
> > the top with a #!/bin/bash and everbody will be happy.
> 
> no
> -mike

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ