On Wed, Nov 16, 2016 at 11:32 AM, Jim Patterson <jimp@xxxxxxxxxx> wrote: > The wall command on AIX supports a "-g" option to limit the message > to a group of users by gid. Add compatibility to the Linux version. > > Thanks to Sami Kerola <kerolasa@xxxxxx> for an initial skeleton > implementation. > > Reference: http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/wall.htm > @@ -113,6 +168,7 @@ int main(int argc, char **argv) > static const struct option longopts[] = { > { "nobanner", no_argument, 0, 'n' }, > { "timeout", required_argument, 0, 't' }, > + { "group", required_argument, 0, 'g' }, > { "version", no_argument, 0, 'V' }, > { "help", no_argument, 0, 'h' }, > { NULL, 0, 0, 0 } > @@ -123,7 +179,7 @@ int main(int argc, char **argv) > textdomain(PACKAGE); > atexit(close_stdout); > > - while ((ch = getopt_long(argc, argv, "nt:Vh", longopts, NULL)) != -1) { > + while ((ch = getopt_long(argc, argv, "nt:g:Vh", longopts, NULL)) != -1) { > switch (ch) { > case 'n': > if (geteuid() == 0) Wouldn't you know it. Just after I send this, I noticed that I missed the usage function. I'll add that in just a moment and send a revised patch. Sorry, Jim P -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html