Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/userdb/getgrnam.c
Parent Directory | Revision Log
Revision 815 -
(hide annotations)
(download)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 245 byte(s)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 245 byte(s)
-updated to klibc-1.5.15
1 | niro | 532 | /* |
2 | * getgrnam.c | ||
3 | * | ||
4 | * Dummy getgrnam() to support udev | ||
5 | */ | ||
6 | |||
7 | niro | 815 | #include <grp.h> |
8 | |||
9 | niro | 532 | #include "userdb.h" |
10 | |||
11 | struct group *getgrnam(const char *name) | ||
12 | { | ||
13 | if (!strcmp(name, "root")) | ||
14 | return (struct group *)&__root_group; | ||
15 | |||
16 | errno = ENOENT; | ||
17 | return NULL; | ||
18 | } |