version 1.2, 1996/04/22 08:15:47 |
version 1.3, 1996/05/05 16:19:36 |
|
|
/* $NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $ */ |
/* $OpenBSD$ */ |
|
/* $NetBSD: ypmatch.c,v 1.6 1996/04/30 22:58:31 jtc Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca> |
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com> |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
|
|
*/ |
*/ |
|
|
#ifndef LINT |
#ifndef LINT |
static char rcsid[] = "$NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $"; |
static char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
|
|
usage(); |
usage(); |
|
|
inmap = argv[argc-1]; |
inmap = argv[argc-1]; |
for(i=0; (!notrans) && i<sizeof ypaliases/sizeof ypaliases[0]; i++) |
if (!notrans) { |
if( strcmp(inmap, ypaliases[i].alias) == 0) |
for(i=0; i<sizeof ypaliases/sizeof ypaliases[0]; i++) |
inmap = ypaliases[i].name; |
if( strcmp(inmap, ypaliases[i].alias) == 0) |
|
inmap = ypaliases[i].name; |
|
} |
for(; optind < argc-1; optind++) { |
for(; optind < argc-1; optind++) { |
inkey = argv[optind]; |
inkey = argv[optind]; |
|
|