repo.or.cz
/
open-iscsi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
open-isns: Fix warnings reported by gcc-4.5.2
[open-iscsi.git]
/
usr
/
statics.c
blob
59fb044d3f6886968f9a0a35db054e1c936ec015
1
#include <unistd.h>
2
#include <pwd.h>
3
#include <sys/errno.h>
4
#include <sys/types.h>
5
6
static struct
passwd root_pw
= {
7
.
pw_name
=
"root"
,
8
};
9
10
struct
passwd
*
11
getpwuid
(
uid_t uid
)
12
{
13
if
(
uid
==
0
)
14
return
&
root_pw
;
15
else
{
16
errno
=
ENOENT
;
17
return
0
;
18
}
19
}
20