From 4bd31e04994adaa6e605ca9eed34a323298358eb Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 8 Jun 2007 18:56:04 +0000 Subject: [PATCH] The adopt command works even if the description isn't quoted --- ChangeLog | 4 ++++ mbfido/mbfile.c | 3 ++- mbfido/mbfutil.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86624b1d..02f7778a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,10 @@ v0.91.9 16-May-2007 Fixed upload crash when a FILE_ID.DIZ is found but the bbs is not allowed to open for reading. + mbfile: + Help message displays quoted description. + The adopt command works even if the description isn't quoted. + mbpasswd: Added check for FreeBSD > 6.0 and use sysctl for security check. diff --git a/mbfido/mbfile.c b/mbfido/mbfile.c index 79d20e07..9ef2c2e2 100644 --- a/mbfido/mbfile.c +++ b/mbfido/mbfile.c @@ -4,7 +4,7 @@ * Purpose: File Database Maintenance * ***************************************************************************** - * Copyright (C) 1997-2004 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -124,6 +124,7 @@ int main(int argc, char **argv) Description = xstrcpy(argv[i]); } } + break; } } else if ((!strncasecmp(argv[i], "d", 1)) || (!strncasecmp(argv[i], "u", 1))) { if (!strncasecmp(argv[i], "u", 1)) diff --git a/mbfido/mbfutil.c b/mbfido/mbfutil.c index 5ab350f5..b3ad2247 100644 --- a/mbfido/mbfutil.c +++ b/mbfido/mbfutil.c @@ -114,7 +114,7 @@ void Help(void) mbse_colour(LIGHTBLUE, BLACK); printf(" Commands are:\n\n"); mbse_colour(CYAN, BLACK); - printf(" a adopt [desc] Adopt file to area\n"); + printf(" a adopt \"[desc]\" Adopt file to area\n"); printf(" c check [area] Check filebase\n"); printf(" d delete \"\" Mark file(s) in area for deletion\n"); printf(" im import Import files in current dir to area\n");