From 96ceee32af0789375aadb1f4c1204acb1c7bb7ad Mon Sep 17 00:00:00 2001 From: Craig Small Date: Wed, 4 Jan 2006 01:14:20 +0000 Subject: [PATCH] fuser signal names --- ChangeLog | 3 +++ src/fuser.c | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7db4a97..f931a55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Changes in 22.1 =============== +2006-01-04 Craig Small + * fuser signals eg -INT work better + 2005-12-16 Craig Small * fuser -s flag works Debian #344901 * fix grep lines in Makefile for i386 arches Debian #344172 diff --git a/src/fuser.c b/src/fuser.c index 6e14793..da307d7 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -655,7 +655,8 @@ int main(int argc, char *argv[]) /* FIXME longopts */ continue; } - while (*option) switch(*option++) { + while (*option) { + switch(*option) { #ifdef WITH_IPV6 case '4': ipv4_only = 1; @@ -717,13 +718,17 @@ int main(int argc, char *argv[]) default: if ( isupper(*option) || isdigit(*option) ) { sig_number = get_signal(option,"fuser"); + option[1]='\0'; + break; } fprintf(stderr,"%s: Invalid option %c\n",argv[0] , argv[optc][1]); - usage(NULL); + break; - } /* switch */ + } /* switch */ + option++; + } continue; } /* File specifications */ -- 2.40.0