From fb70473f0a3f49aee705a6d3e1347388ba84a0f0 Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 9 Aug 2004 21:15:08 +0000 Subject: [PATCH] Support the "setenv" capability in login.conf ala FreeBSD. Following FreeBSD's example, a '~' in an environment variable is replaced with the user's homedir. A '$' is replaced by the user's login name. Both can be escaped with a backslash to get the literal char. OK deraadt@ --- src/include/login_cap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/login_cap.h b/src/include/login_cap.h index d3a45eae..86322ae5 100644 --- a/src/include/login_cap.h +++ b/src/include/login_cap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.h,v 1.11 2004/08/03 21:00:06 millert Exp $ */ +/* $OpenBSD: login_cap.h,v 1.12 2004/08/09 21:15:08 millert Exp $ */ /*- * Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved. @@ -51,6 +51,7 @@ #define LOGIN_SETRESOURCES 0x0010 /* Set resource limits */ #define LOGIN_SETUMASK 0x0020 /* Set umask */ #define LOGIN_SETUSER 0x0040 /* Set user */ +#define LOGIN_SETENV 0x0080 /* Set environment */ #define LOGIN_SETALL 0x007f /* Set all. */ #define BI_AUTH "authorize" /* Accepted authentication */