1 $NetBSD: patch-af,v 1.1 1999/01/18 21:11:48 bad Exp $
3 --- src/update.c.orig Thu Jun 25 10:56:50 1998
4 +++ src/update.c Wed Feb 23 01:28:45 2000
6 cvs_output (": Executing '", 0);
9 - (void) run_exec (RUN_TTY, RUN_TTY, RUN_TTY, RUN_NORMAL);
10 + (void) run_exec (RUN_TTY, RUN_TTY, RUN_TTY,
11 + RUN_NORMAL | RUN_UNSETXID);
14 error (0, errno, "cannot read %s", CVSADM_UPROG);
15 @@ -1304,11 +1305,18 @@
16 xchmod (finfo->file, 1);
19 + mode_t oumask, writeaccess;
21 /* We know that we are the server here, so
22 although xchmod checks umask, we don't bother. */
23 - mode |= (((mode & S_IRUSR) ? S_IWUSR : 0)
24 + /* Not bothering with the umask makes the files
25 + mode 0777 on old clients, though. -chb */
27 + (void) umask(oumask);
28 + writeaccess = (((mode & S_IRUSR) ? S_IWUSR : 0)
29 | ((mode & S_IRGRP) ? S_IWGRP : 0)
30 | ((mode & S_IROTH) ? S_IWOTH : 0));
31 + mode |= (~oumask) & writeaccess;