Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/userdb/getpwuid.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 205 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /*
2     * getpwuid.c
3     *
4     * Dummy getpwuid() to support udev
5     */
6    
7     #include "userdb.h"
8    
9    
10     struct passwd *getpwuid(uid_t uid)
11     {
12     if (!uid)
13     return (struct passwd *)&__root_user;
14    
15     errno = ENOENT;
16     return NULL;
17     }