diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-01-26 10:42:07 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-01-26 10:42:07 +0000 |
commit | 3aa7488d4a8e9e1ce78e70c4f64262159b31d851 (patch) | |
tree | 0b5d389f35a261e02abeba147f8beb7677a1aacb /usr.bin/cvs | |
parent | d52116fd2cbe84bb6b5e579cc81631bb358597b1 (diff) |
respect umask; ok joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index ce88626126e..e9411fcef50 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.50 2007/01/25 18:56:33 otto Exp $ */ +/* $OpenBSD: client.c,v 1.51 2007/01/26 10:42:06 otto Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -607,7 +607,7 @@ cvs_client_updated(char *data) { int l, fd; time_t now; - mode_t fmode; + mode_t fmode, mask; size_t flen; CVSENTRIES *ent; struct cvs_ent *e; @@ -641,6 +641,9 @@ cvs_client_updated(char *data) cvs_strtomode(mode, &fmode); xfree(mode); + mask = umask(0); + umask(mask); + fmode &= ~mask; time(&now); now = cvs_hack_time(now, 0); |