Print this page
3243 Add shadow support to getent(1)
@@ -18,16 +18,15 @@
* 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.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <unistd.h>
@@ -40,10 +39,11 @@
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 },