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  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:   Thu, 16 May 2019 09:00:50 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Masahiro Yamada' <>,
        Kees Cook <>
CC:     Linux Kbuild mailing list <>,
        Andrew Morton <>,
        Sam Ravnborg <>, Arnd Bergmann <>,
        Greg KH <>,
        Jessica Yu <>,
        Lucas De Marchi <>,
        "Linus Torvalds" <>,
        Rusty Russell <>,
        Michal Marek <>,
        "Linux Kernel Mailing List" <>
Subject: RE: [RFC PATCH] kbuild: check uniqueness of basename of modules

From: Masahiro Yamada
> Sent: 15 May 2019 18:55
> >     xargs basename -a -- | sort | ...
> Sorry for my ignorance, but could you
> teach me the effect of "--" ?
> I sometimes use "--" as a separator
> when there is ambiguity in arguments
> for example, "git log <revision> -- <path>"
> In this case, what is intended by "--"?

The '--' stops getopt() from parsing any more parameters.
Useful things like 'grep -- -q' which will search for the
string '-q' rather than treating it as a command line option.

This is all made more horrid by a decision by the writers
of glibc getopt() to 'permute' argv[] so that 'options'
can follow 'nonoptions' ie it converts:
	prog file -arg
	prog -arg file
The only program the historically allowed 'late' options
was 'rlogin hostname -l username'.
This is just broken.....


Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists