Re: [PATCH 1/2] tools: kernel-chktaint: Fix bashism, simplify code

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

 



On 18.06.24 11:06, Petr Vorel wrote:
> '==' is bashism, '=' needs to be used for comparison.
> With this fix script can work on systems where the default shell is
> dash, busybox ash or any other strictly POSIX compatible shell.
> 
> While at it, also improve:
> * remove "x" in the comparison (not needed for decades)
> * use $# for checking number of arguments
> * cleanup whitespace
> 
> Fixes: 4ab5a5d2a4a22 ("tools: add a kernel-chktaint to tools/debugging")
> Signed-off-by: Petr Vorel <pvorel@xxxxxxx>

Acked-by: Thorsten Leemhuis <linux@xxxxxxxxxxxxx>

Ciao, Thorsten




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux