Browse Source

Show hidden files if run as root

master
sin 10 years ago
parent
commit
3bc66a43a7
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      noice.c

+ 6
- 1
noice.c View File

@@ -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];


Loading…
Cancel
Save