Print this page
3243 Add shadow support to getent(1)

*** 18,33 **** * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - #include <stdlib.h> #include <stdio.h> #include <string.h> #include <locale.h> #include <unistd.h> --- 18,32 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright (c) 2014 Gary Mills * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <locale.h> #include <unistd.h>
*** 40,49 **** --- 39,49 ---- int (*func)(const char **); /* function to do the lookup */ }; static struct table t[] = { { "passwd", dogetpw }, + { "shadow", dogetsp }, { "group", dogetgr }, { "hosts", dogethost }, { "ipnodes", dogetipnodes }, { "services", dogetserv }, { "protocols", dogetproto },