vlogin.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * CDDL HEADER START
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * The contents of this file are subject to the terms of the
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * Common Development and Distribution License, Version 1.0 only
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * (the "License"). You may not use this file except in compliance
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * with the License.
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * See the License for the specific language governing permissions
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * and limitations under the License.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * When distributing Covered Code, include this CDDL HEADER in each
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * If applicable, add the following below this CDDL HEADER, with the
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * fields enclosed by brackets "[]" replaced with your own identifying
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * information: Portions Copyright [yyyy] [name of copyright owner]
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * CDDL HEADER END
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * Copyright (c) 1997, by Sun Microsystems, Inc.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * All rights reserved.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb/* All Rights Reserved */
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb/*LINTLIBRARY*/
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb * validate string given as login name.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbvalid_login(char *login, struct passwd **pptr, int *warning)
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * XXX length checking causes some operational/compatibility problem.
ba7b222e36bac28710a7f43739283302b617e7f5Glenn Barry * This has to be revisited in the future as ARC/standards issue.