From 2328d8dbb5a8c774afb99d363b6e98cd25ee304d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 9 Jul 2017 16:35:38 -0400 Subject: Handle ENOTDIR the same as ENOENT For a/b/c, ENOTDIR is returned instead of ENOENT if a or b are not directories. Handle this uniformly when detecting broken symlinks, readdir races, etc. --- tests/test_L.out | 1 + tests/test_L_depth.out | 1 + tests/test_L_xtype_l.out | 1 + tests/test_colors.out | 1 + tests/test_follow.out | 1 + tests/test_printf_types.out | 1 + tests/test_xtype_l.out | 1 + 7 files changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/test_L.out b/tests/test_L.out index 36087e8..f9ded0a 100644 --- a/tests/test_L.out +++ b/tests/test_L.out @@ -4,6 +4,7 @@ links/b links/c links/d links/h +links/j links/d/e links/h/f links/h/g diff --git a/tests/test_L_depth.out b/tests/test_L_depth.out index 36087e8..f9ded0a 100644 --- a/tests/test_L_depth.out +++ b/tests/test_L_depth.out @@ -4,6 +4,7 @@ links/b links/c links/d links/h +links/j links/d/e links/h/f links/h/g diff --git a/tests/test_L_xtype_l.out b/tests/test_L_xtype_l.out index 1052fc0..57bee1b 100644 --- a/tests/test_L_xtype_l.out +++ b/tests/test_L_xtype_l.out @@ -1,5 +1,6 @@ links/b links/h +links/j links/h/g links/h/i links/d/e/i diff --git a/tests/test_colors.out b/tests/test_colors.out index a9ab84a..8c8b244 100644 --- a/tests/test_colors.out +++ b/tests/test_colors.out @@ -2,6 +2,7 @@ links/d links/b links/h +links/j links/a links/c links/d/e diff --git a/tests/test_follow.out b/tests/test_follow.out index 36087e8..f9ded0a 100644 --- a/tests/test_follow.out +++ b/tests/test_follow.out @@ -4,6 +4,7 @@ links/b links/c links/d links/h +links/j links/d/e links/h/f links/h/g diff --git a/tests/test_printf_types.out b/tests/test_printf_types.out index 94fa833..bd89b47 100644 --- a/tests/test_printf_types.out +++ b/tests/test_printf_types.out @@ -5,6 +5,7 @@ (links/d) () d d (links/d/e) () d d (links/h) (d/e) l d +(links/j) (b/c) l N (links/d/e/f) () d d (links/d/e/i) (q) l N (links/d/e/g) (../../d) l d diff --git a/tests/test_xtype_l.out b/tests/test_xtype_l.out index e5e13fc..2d1293f 100644 --- a/tests/test_xtype_l.out +++ b/tests/test_xtype_l.out @@ -1 +1,2 @@ +links/j links/d/e/i -- cgit v1.2.3