aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-01-25 06:11:17 +0000
committerBill Nottingham <notting@redhat.com>2002-01-25 06:11:17 +0000
commitcc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee (patch)
tree7120f4e76b974fc4c36bdd8d25c6d0b38f5820e4 /src
parentfffbc7e47c34c2d32583ca7cd8ec5b869b453dbd (diff)
downloadinitscripts-cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee.tar
initscripts-cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee.tar.gz
initscripts-cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee.tar.bz2
initscripts-cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee.tar.xz
initscripts-cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee.zip
complain about extra arguments (#54681, <goeran@uddeborg.pp.se>)
Diffstat (limited to 'src')
-rw-r--r--src/netreport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netreport.c b/src/netreport.c
index cceedc3a..4ed2a861 100644
--- a/src/netreport.c
+++ b/src/netreport.c
@@ -26,7 +26,7 @@ int main(int argc, char ** argv) {
}
if (argc > 1) {
- if (strcmp(argv[1], "-r") == 0) {
+ if (argc == 2 && strcmp(argv[1], "-r") == 0) {
action = DEL;
} else {
usage();