=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdistd/server.c,v retrieving revision 1.45 retrieving revision 1.46 diff -c -r1.45 -r1.46 *** src/usr.bin/rdistd/server.c 2018/09/21 19:13:49 1.45 --- src/usr.bin/rdistd/server.c 2019/06/28 05:35:35 1.46 *************** *** 1,4 **** ! /* $OpenBSD: server.c,v 1.45 2018/09/21 19:13:49 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: server.c,v 1.46 2019/06/28 05:35:35 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 740,746 **** /* * Create temporary file */ ! if (chkparent(new, opts) < 0 || (f = mkstemp(new)) < 0) { error("%s: create failed: %s", new, SYSERR); return; } --- 740,746 ---- /* * Create temporary file */ ! if (chkparent(new, opts) < 0 || (f = mkstemp(new)) == -1) { error("%s: create failed: %s", new, SYSERR); return; }