Enable GLOB_BRACE for ftpd.conf(5)'s `notify' directive.

Now it's much easier to list multiple files...
This commit is contained in:
lukem 2002-10-03 02:56:47 +00:00
parent 0c1efadb23
commit adbaddc918
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.48 2002/06/18 09:59:47 aidan Exp $ */
/* $NetBSD: conf.c,v 1.49 2002/10/03 02:56:47 lukem Exp $ */
/*-
* Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: conf.c,v 1.48 2002/06/18 09:59:47 aidan Exp $");
__RCSID("$NetBSD: conf.c,v 1.49 2002/10/03 02:56:47 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@ -634,7 +634,7 @@ show_chdir_messages(int code)
return;
memset(&gl, 0, sizeof(gl));
if (glob(curclass.notify, GLOB_LIMIT, NULL, &gl) != 0
if (glob(curclass.notify, GLOB_BRACE|GLOB_LIMIT, NULL, &gl) != 0
|| gl.gl_matchc == 0) {
globfree(&gl);
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: version.h,v 1.45 2002/07/02 02:18:02 lukem Exp $ */
/* $NetBSD: version.h,v 1.46 2002/10/03 02:56:47 lukem Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
* All rights reserved.
@ -36,5 +36,5 @@
*/
#ifndef FTPD_VERSION
#define FTPD_VERSION "NetBSD-ftpd 20020702"
#define FTPD_VERSION "NetBSD-ftpd 20021003"
#endif