From 7dbb94985af562d48d50fb05a4646c5f7ee6c1be Mon Sep 17 00:00:00 2001 From: didg Date: Tue, 28 Sep 2004 13:19:12 +0000 Subject: [PATCH] error msg if it can't parse -ipaddr parameter --- etc/afpd/afp_options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index 32d6edc7..61177f70 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -1,5 +1,5 @@ /* - * $Id: afp_options.c,v 1.30.2.2.2.10 2004-09-28 11:34:02 didg Exp $ + * $Id: afp_options.c,v 1.30.2.2.2.11 2004-09-28 13:19:12 didg Exp $ * * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu) * Copyright (c) 1990,1993 Regents of The University of Michigan. @@ -440,6 +440,9 @@ int afp_options_parseline(char *buf, struct afp_options *options) LOG(log_info, logtype_afpd, "WARNING: can't find %s", opt); options->ipaddr = opt; } + else { + LOG(log_error, logtype_afpd, "Error parsing -ipaddr, is %s in numbers-and-dots notation?", c); + } } /* FIXME CNID Cnid_srv is a server attribute */ -- 2.39.2