diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libcruft/getspnam_r.c')
-rw-r--r-- | mdk-stage1/dietlibc/libcruft/getspnam_r.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mdk-stage1/dietlibc/libcruft/getspnam_r.c b/mdk-stage1/dietlibc/libcruft/getspnam_r.c deleted file mode 100644 index 084751d16..000000000 --- a/mdk-stage1/dietlibc/libcruft/getspnam_r.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <string.h> -#include <shadow.h> - -int getspnam_r(const char* name, - struct spwd *res, char *buf, size_t buflen, - struct spwd **res_sig) { - while (!getspent_r(res,buf,buflen,res_sig)) - if (!strcmp(name,res->sp_namp)) - goto ok; - *res_sig=0; -ok: - endspent(); - return *res_sig?0:-1; -} |