From 25efe69d60d98d8b57a1c3ba496bef7414fab106 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Thu, 24 Sep 2009 10:52:57 -0700 Subject: [PATCH] cmd: Make 'dir' hide hidden or system files by default. --- programs/cmd/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c index 647f4f158f3..08c72ae0be2 100644 --- a/programs/cmd/directory.c +++ b/programs/cmd/directory.c @@ -680,7 +680,7 @@ void WCMD_directory (WCHAR *cmd) { orderGroupDirs = FALSE; orderGroupDirsReverse = FALSE; showattrs = 0; - attrsbits = 0; + attrsbits = FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM; /* Handle args - Loop through so right most is the effective one */ /* Note: /- appears to be a negate rather than an off, eg. dir