map.c (157001) | map.c (159609) |
---|---|
1/* 2 * Copyright (c) 1998-2005 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1992, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15 | 1/* 2 * Copyright (c) 1998-2005 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1992, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15 |
16SM_RCSID("@(#)$Id: map.c,v 8.671 2005/10/25 17:55:50 ca Exp $") | 16SM_RCSID("@(#)$Id: map.c,v 8.672 2006/04/18 01:26:41 ca Exp $") |
17 18#if LDAPMAP 19# include <sm/ldap.h> 20#endif /* LDAPMAP */ 21 22#if NDBM 23# include <ndbm.h> 24# ifdef R_FIRST --- 5962 unchanged lines hidden (view full) --- 5987 5988 case 6: 5989 rwval = user.mbdb_homedir; 5990 break; 5991 5992 case 7: 5993 rwval = user.mbdb_shell; 5994 break; | 17 18#if LDAPMAP 19# include <sm/ldap.h> 20#endif /* LDAPMAP */ 21 22#if NDBM 23# include <ndbm.h> 24# ifdef R_FIRST --- 5962 unchanged lines hidden (view full) --- 5987 5988 case 6: 5989 rwval = user.mbdb_homedir; 5990 break; 5991 5992 case 7: 5993 rwval = user.mbdb_shell; 5994 break; |
5995 default: 5996 syserr("user_map %s: bogus field %d", 5997 map->map_mname, map->map_valcolno); 5998 return NULL; |
|
5995 } 5996 return map_rewrite(map, rwval, strlen(rwval), av); 5997 } 5998} 5999/* 6000** Program map type. 6001** 6002** This provides access to arbitrary programs. It should be used --- 1702 unchanged lines hidden --- | 5999 } 6000 return map_rewrite(map, rwval, strlen(rwval), av); 6001 } 6002} 6003/* 6004** Program map type. 6005** 6006** This provides access to arbitrary programs. It should be used --- 1702 unchanged lines hidden --- |