=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.c,v retrieving revision 1.576 retrieving revision 1.577 diff -u -r1.576 -r1.577 --- src/usr.bin/ssh/ssh.c 2022/09/17 10:33:18 1.576 +++ src/usr.bin/ssh/ssh.c 2022/10/06 22:42:37 1.577 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.576 2022/09/17 10:33:18 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.577 2022/10/06 22:42:37 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -653,7 +653,7 @@ * writable only by the owner, which is ok for all files for which we * don't set the modes explicitly. */ - umask(022); + umask(022 | umask(077)); setlocale(LC_CTYPE, "");