]> err.no Git - util-linux/commit
unshare: fix SIGSEGV on invalid command line option
authorAlexey Gladkov <gladkov.alexey@gmail.com>
Wed, 5 Jan 2011 18:22:51 +0000 (21:22 +0300)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Jan 2011 19:30:16 +0000 (20:30 +0100)
commit4ffde0b60b7f6452c47bab1c9929583baed32378
tree4808554c2b79f6414b218b2fb4fe63d0d92b0bdc
parent8feb31e5329da705e7fc99f7b28a261af8c9e493
unshare: fix SIGSEGV on invalid command line option

$ unshare --hel
Segmentation fault

The last element of longopts has to be filled with zeros.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
sys-utils/unshare.c