# Any user specific configuration which can affect fstat?

**URL:** <https://forums.suse.com/t/any-user-specific-configuration-which-can-affect-fstat/21851>\
**Category:** SLES Configure-Administer\
**Created:** [October 27, 2011, 12:26pm UTC](https://forums.suse.com/t/any-user-specific-configuration-which-can-affect-fstat/21851 "2011-10-27T12:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [October 27, 2011, 12:26pm UTC](https://forums.suse.com/t/any-user-specific-configuration-which-can-affect-fstat/21851/1 "2011-10-27T12:26:03Z")

</div>

Hi,  
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?

Thanks,  
Avj

## – avj1605

avj1605’s Profile: [http://forums.novell.com/member.php?userid=118567](http://forums.novell.com/member.php?userid=118567)  
View this thread: [http://forums.novell.com/showthread.php?t=447401](http://forums.novell.com/showthread.php?t=447401)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 1, 2011, 8:26pm UTC](https://forums.suse.com/t/any-user-specific-configuration-which-can-affect-fstat/21851/2 "2011-11-01T20:26:25Z")

</div>

avj1605,

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

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.novell.com/faq.php](http://forums.novell.com/faq.php)

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