aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-21 12:03:53 +0100
committersin <sin@2f30.org>2014-10-21 12:03:53 +0100
commit3bc66a43a7d1610776ff25af3675f9527fc4aabc (patch)
tree7bccd7d945e502696407236ce283a1d50b82d356 /noice.c
parent65a01f96363e7c6e1a7d479f18cacde8e32eb2a0 (diff)
downloadnoice-3bc66a43a7d1610776ff25af3675f9527fc4aabc.tar.gz
Show hidden files if run as root
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];
Un proyecto texto-plano.xyz