[Bug 3361] id -n -g returns 1 on groups with more then 14 members

bugzilla at busybox.net bugzilla at busybox.net
Sat Jun 18 16:16:11 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3361

--- Comment #6 from Tanguy Pruvot <tanguy.pruvot at gmail.com>  ---
Created attachment 3445
  --> https://bugs.busybox.net/attachment.cgi?id=3445
[PATCH] implement groups applet

as a wrapper to id special syntax :

+int groups_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int groups_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
+{
+    if (argv[1])
+        bb_show_usage();
+
+    char *id_argv[4];
+    id_argv[0] = xstrdup("id");
+    id_argv[1] = xstrdup("-G");
+    id_argv[2] = xstrdup("-n");
+    id_argv[3] = 0;
+
+    return id_main(3, id_argv);
+}

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list