From dbc1285a309fc28b62ba54af3aec3c98667ce038 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 22 Apr 2003 22:57:14 +0000 Subject: Tell glob() to do tilde and brace expansion too. --- usr.bin/less/lglob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/less/lglob.h b/usr.bin/less/lglob.h index b81c655f58e..88b13bb5c0b 100644 --- a/usr.bin/less/lglob.h +++ b/usr.bin/less/lglob.h @@ -24,8 +24,9 @@ #include +#define GLOB_FLAGS (GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE) #define DECL_GLOB_LIST(list) glob_t list; int i; -#define GLOB_LIST(filename,list) glob(filename,GLOB_NOCHECK,0,&list) +#define GLOB_LIST(filename,list) glob(filename,GLOB_FLAGS,0,&list) #define GLOB_LIST_FAILED(list) 0 #define SCAN_GLOB_LIST(list,p) i = 0; i < list.gl_pathc; i++ #define INIT_GLOB_LIST(list,p) p = list.gl_pathv[i] -- cgit v1.2.3