summaryrefslogtreecommitdiffstats
path: root/misc-utils/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/namei.c')
-rw-r--r--misc-utils/namei.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c
index f110e6385..2541d03bc 100644
--- a/misc-utils/namei.c
+++ b/misc-utils/namei.c
@@ -255,11 +255,12 @@ register int lev;
(void)printf(" l %s -> %s", buf, sym);
if(symcount > 0 && symcount++ > MAXSYMLINKS){
- (void)printf(_(" *** EXCEEDED UNIX LIMIT OF SYMLINKS ***"));
+ (void)printf(_(" *** EXCEEDED UNIX LIMIT OF SYMLINKS ***\n"));
symcount = -1;
+ } else {
+ (void)printf("\n");
+ namei(sym, lev + 1);
}
- (void)printf("\n");
- namei(sym, lev + 1);
break;
case S_IFCHR: