Browse Source

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@
OPENBSD_3_6
millert 20 years ago
parent
commit
fb70473f0a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/include/login_cap.h

+ 2
- 1
src/include/login_cap.h View File

@ -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 */


Loading…
Cancel
Save