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]
Message-ID: <20091217043021.GV14381@ZenIV.linux.org.uk>
Date:	Thu, 17 Dec 2009 04:30:21 +0000
From:	Al Viro <viro@...IV.linux.org.uk>
To:	Masami Hiramatsu <mhiramat@...hat.com>
Cc:	Andrew Isaacson <adi@...are.com>, linux-kernel@...r.kernel.org,
	linux-kbuild@...r.kernel.org, Rob Landley <rob@...dley.net>
Subject: Re: CONFIG_KPROBES=y build requires gawk

On Wed, Dec 16, 2009 at 10:43:47PM -0500, Masami Hiramatsu wrote:
> Al Viro wrote:
> > On Wed, Dec 16, 2009 at 03:56:17PM -0800, Andrew Isaacson wrote:
> >> With CONFIG_KPROBES=y on Ubuntu 9.10 x86_64 default install, I get the
> >> following:
> >>
> >> Error: Your awk doesn't support charactor-class.
> >> Please try to use gawk.
> > 
> > Aside of the incorrect suggestion (you need not just gawk, you need that
> > thing installed as awk), the use of GNUisms in there is actually pointless
> > since encoding is bloody fixed.
> 
> Hmm, maybe "POSIX awk" will be a better suggestion, isn't it?

Not really.

Note that meaning of [:alpha:] depends on locale, and you are working
with fixed input, in fixed encoding.  So you *already* have a dependency
on locale and it's no better or worse way to express the set than A-Za-z
is.  With LANG=C both describe the set you are after; in other locales
neither is guaranteed to.  And having it set by caller of your script
is trivial.

IOW, you are actually misusing the language feature and while it's easy
to fix, the same fix will remove any benefits compared to universally
available alternative language feature.
--
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