diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-11-21 22:17:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-11-21 22:17:42 +0000 |
commit | 0442615ec427bdb76dcec6e708f53f27d5665bb6 (patch) | |
tree | 017a3461a952fcf5d6b71d85703d4bab41005372 /libexec/login_token | |
parent | 3af76d00f89f6dbb7371d545b4c269697027724d (diff) |
Fix thinko, mode 0640 not 0620
Diffstat (limited to 'libexec/login_token')
-rw-r--r-- | libexec/login_token/tokendb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/login_token/tokendb.c b/libexec/login_token/tokendb.c index 3d6e4cd5b64..f3cc801fcec 100644 --- a/libexec/login_token/tokendb.c +++ b/libexec/login_token/tokendb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tokendb.c,v 1.5 2002/11/21 22:00:49 millert Exp $ */ +/* $OpenBSD: tokendb.c,v 1.6 2002/11/21 22:17:41 millert Exp $ */ /*- * Copyright (c) 1995 Migration Associates Corp. All Rights Reserved @@ -196,7 +196,7 @@ tokendb_open(void) must_set_perms++; #endif } - if ((statb.st_mode & 0777) != 0620) { + if ((statb.st_mode & 0777) != 0640) { #ifdef PARANOID printf("Authentication disabled\n"); fflush(stdout); @@ -210,7 +210,7 @@ tokendb_open(void) } } if (!(tokendb = - dbopen(tt->db, O_CREAT | O_RDWR, 0620, DB_BTREE, 0)) ) + dbopen(tt->db, O_CREAT | O_RDWR, 0640, DB_BTREE, 0)) ) return (-1); if (flock((tokendb->fd)(tokendb), LOCK_SH)) { @@ -220,7 +220,7 @@ tokendb_open(void) if (must_set_perms && fchown((tokendb->fd)(tokendb), 0, grp->gr_gid)) syslog(LOG_INFO, "Can't set owner/group of %s errno=%m", tt->db); - if (must_set_mode && fchmod((tokendb->fd)(tokendb), 0620)) + if (must_set_mode && fchmod((tokendb->fd)(tokendb), 0640)) syslog(LOG_INFO, "Can't set mode of %s errno=%m", tt->db); |