summaryrefslogtreecommitdiff
path: root/usr.bin/less/lglob.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/lglob.h')
-rw-r--r--usr.bin/less/lglob.h3
1 files changed, 2 insertions, 1 deletions
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 <glob.h>
+#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]