diff options
Diffstat (limited to 'guts/getgroups.c')
-rw-r--r-- | guts/getgroups.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/guts/getgroups.c b/guts/getgroups.c deleted file mode 100644 index afb9662..0000000 --- a/guts/getgroups.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2010 Wind River Systems; see - * guts/COPYRIGHT for information. - * - * static int - * wrap_getgroups(int size, gid_t *list) { - * int rc = -1; - */ - struct passwd *p = wrap_getpwuid(wrap_getuid()); - int oldsize = size; - - if (p) { - rc = wrap_getgrouplist(p->pw_name, wrap_getgid(), list, &size); - if (oldsize == 0 || size <= oldsize) - rc = size; - } else { - errno = ENOENT; - } - -/* return rc; - * } - */ |