diff options
Diffstat (limited to 'src/misc/cuserid.c')
-rw-r--r-- | src/misc/cuserid.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/misc/cuserid.c b/src/misc/cuserid.c deleted file mode 100644 index 4e78798d..00000000 --- a/src/misc/cuserid.c +++ /dev/null @@ -1,14 +0,0 @@ -#define _GNU_SOURCE -#include <pwd.h> -#include <stdio.h> -#include <unistd.h> - -char *cuserid(char *buf) -{ - struct passwd pw, *ppw; - long pwb[256]; - if (getpwuid_r(geteuid(), &pw, (void *)pwb, sizeof pwb, &ppw)) - return 0; - snprintf(buf, L_cuserid, "%s", pw.pw_name); - return buf; -} |