Stat returns no such file or directory on symlink

Solution Verified - Updated -

Issue

  • Trying to stat a symlink shows the following:
[root@host]# stat -L /usr/share/terminfo/v/vt100
stat: cannot stat `/usr/share/terminfo/v/vt100': No such file or directory
  • ls -l can see the file as a symlink
[root@host]# ll /usr/share/terminfo/v/vt100
lrwxrwxrwx. 1 root root 32 Oct 12 13:24 /usr/share/terminfo/v/vt100 -> ../../../../lib/terminfo/v/vt100

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content