aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 3a9e241..5d8cc47 100644
--- a/noice.c
+++ b/noice.c
@@ -606,7 +606,12 @@ int
main(int argc, char *argv[])
{
char cwd[PATH_MAX], *ipath;
- char *ifilter = "^[^.].*"; /* Hide dotfiles */
+ char *ifilter;
+
+ if (getuid() == 0)
+ ifilter = ".*";
+ else
+ ifilter = "^[^.].*"; /* Hide dotfiles */
if (argv[1] != NULL) {
ipath = argv[1];