diff --git a/src/nnn.c b/src/nnn.c index 22b559e0..8b3214c0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3400,7 +3400,8 @@ static char get_ind(mode_t mode, bool perms, uchar *pair) *pair = C_CHR; return '\0'; default: - *pair = C_UND; + if (!perms) + *pair = C_UND; return '?'; } }