summaryrefslogtreecommitdiffstats
path: root/misc-utils/namei.1
diff options
context:
space:
mode:
authorKarel Zak2007-01-31 16:43:18 +0100
committerKarel Zak2007-01-31 16:43:18 +0100
commitd8ef4c19ab6ebe29b1deb5d5445cba6d76192a4f (patch)
treeaf69ddf9d666eaafb36bd99b5787a7c8b5fb4e6e /misc-utils/namei.1
parentcol: getwchar() errors shouldn't be hidden (diff)
downloadkernel-qcow2-util-linux-d8ef4c19ab6ebe29b1deb5d5445cba6d76192a4f.tar.gz
kernel-qcow2-util-linux-d8ef4c19ab6ebe29b1deb5d5445cba6d76192a4f.tar.xz
kernel-qcow2-util-linux-d8ef4c19ab6ebe29b1deb5d5445cba6d76192a4f.zip
namei: fix logic and infinite loop of symlinks
Don't follow the path if a component is not directory. It doesn't make sense to support something like: $ touch a b $ namei a/b <-- where "a" is not directory The support for infinite loop of symbolic links is a strange wish only. The stack size is very limited. Try: $ ln -s x $ namei x/x [Migration note: severity="low"] Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/namei.1')
-rw-r--r--misc-utils/namei.14
1 files changed, 0 insertions, 4 deletions
diff --git a/misc-utils/namei.1 b/misc-utils/namei.1
index 348a37894..96fa89908 100644
--- a/misc-utils/namei.1
+++ b/misc-utils/namei.1
@@ -52,9 +52,5 @@ for example 'rwxr-xr-x'.
Roger Southwick (rogers@amadeus.wr.tek.com)
.SH BUGS
To be discovered.
-.SH CAVEATS
-.I Namei
-will follow an infinite loop of symbolic links forever. To escape, use
-SIGINT (usually ^C).
.SH "SEE ALSO"
ls(1), stat(1)