Any user specific configuration which can affect fstat?

We have observed one problem for “fstat” system call.
We are running a program which checks the type of STDIN ( program name

  • stdin64) on SuSE Linux Enterprise 11 server.

fstat call returns wrong value for non-root user - ID - 8283.
When type of STDIN is FIFO, it returns socket.
( $ echo “test” | ./stdin64)

For root, when type of STDIN is FIFO, it returns right value; i.e. FIFO

( # echo “test” | ./stdin64)

For other file types,i.e. when STDIN type is regular file, for root as
well as non-root user(ID 8283), fstat returns right value.
$ ./stdin64 < sample)

Why fstat behaves differently for non-root and root?



avj1605’s Profile:
View this thread:


It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

  • Visit and search the knowledgebase and/or check all
    the other self support options and support programs available.
  • You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (

Be sure to read the forum FAQ about what to expect in the way of responses:

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team