=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/write/write.c,v retrieving revision 1.35 retrieving revision 1.36 diff -c -r1.35 -r1.36 *** src/usr.bin/write/write.c 2019/06/28 13:35:05 1.35 --- src/usr.bin/write/write.c 2021/10/24 21:24:18 1.36 *************** *** 1,4 **** ! /* $OpenBSD: write.c,v 1.35 2019/06/28 13:35:05 deraadt Exp $ */ /* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: write.c,v 1.36 2021/10/24 21:24:18 deraadt Exp $ */ /* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */ /* *************** *** 236,242 **** login = user_from_uid(myuid, 0); (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty); ! fd = open(path, O_WRONLY, 0666); if (fd == -1) err(1, "open %s", path); fflush(stdout); --- 236,242 ---- login = user_from_uid(myuid, 0); (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty); ! fd = open(path, O_WRONLY); if (fd == -1) err(1, "open %s", path); fflush(stdout);