View Full Version : Any user specific configuration which can affect fstat?

27-Oct-2011, 10:26
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: http://forums.novell.com/member.php?userid=118567
View this thread: http://forums.novell.com/showthread.php?t=447401

Automatic Reply
01-Nov-2011, 19:26

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 http://support.novell.com 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. (http://forums.novell.com)

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