]> err.no Git - util-linux/commit
flockc: segfaults when file name is not given
authorKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2009 11:49:50 +0000 (12:49 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2009 12:37:40 +0000 (13:37 +0100)
commit841f86dbc2e35166fd43341c8eb144680b0c7ece
treea7d5eba010424d68af19264e8c42c517b38a6e38
parentdcb54fafb128ab41772ae217afc6a7612e2cc446
flockc: segfaults when file name is not given

$ flock -s
Segmentation fault

ltrace:
__libc_start_main(0x8048870, 2, 0xbfe9f404, 0x8049070, 0x8049060 <unfinished ...>
getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = 115
getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = -1
strtol(0, 0xbfe9f34c, 10, 0x80494e0, 0xbfe9f354 <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Addresses-Red-Had-Bugzilla: #489672
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/flock.c