diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-26 03:28:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-26 03:28:31 +0000 |
commit | 3aa55c5fded04d24e49a5ef347143a81e77baa25 (patch) | |
tree | 7f23149ee747e1fa19de85a37c1c84dbf849dadd /include/pwd.h | |
parent | 8eae4adcc3f2ca8d68e42305f860c7a0bfe53885 (diff) |
Change the second arg to pw_mkdb() from a boolean flag to a set of
bit flags ORed together. Currently the only flags defined are
_PASSWORD_SECUREONLY and _PASSWORD_OMITV7 but this is enough to
cause pw_mkdb() to run pwd_mkdb with the options we want.
With this change we no longer generate the old V7 passwd file when
only the extra fields in master.passwd (or the encrypted password)
have changed. There are other programs that could probably use
the _PASSWORD_OMITV7 flag; they will be converted at a future date.
Diffstat (limited to 'include/pwd.h')
-rw-r--r-- | include/pwd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/pwd.h b/include/pwd.h index af6c812f619..6307980c7fc 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.h,v 1.11 2001/02/13 14:48:40 pjanzen Exp $ */ +/* $OpenBSD: pwd.h,v 1.12 2001/08/26 03:28:30 millert Exp $ */ /* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */ /*- @@ -75,6 +75,10 @@ #define _PASSWORD_NOCHG 0x04 /* flag for no specified change. */ #define _PASSWORD_NOEXP 0x08 /* flag for no specified expire. */ +/* Flags for pw_mkdb(3) */ +#define _PASSWORD_SECUREONLY 0x01 /* only generate spwd.db file */ +#define _PASSWORD_OMITV7 0x02 /* don't generate v7 passwd file */ + #endif struct passwd { |