summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-02-18 20:54:19 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-02-18 20:54:19 +0000
commit2b488200e9fadf4afba8d60c55b36206fe7a84e6 (patch)
tree66f2477236ba5c4777e56e6f8eaa1a457b200bf8 /usr.bin/rcs
parent5cd865aaf897ce2fc470de0e9186122be31a0496 (diff)
keep correct permissions on the RCS file when locking/unlocking the file
with ci and co. fixes PR 5379. OK millert@ joris@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/co.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index ff4feb99ec5..5c3940d134a 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.101 2007/02/01 18:01:42 millert Exp $ */
+/* $OpenBSD: co.c,v 1.102 2007/02/18 20:54:18 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -354,7 +354,7 @@ checkout_rev(RCSFILE *file, RCSNUM *frev, const char *dst, int flags,
if (file->rf_fd != -1) {
if (fstat(file->rf_fd, &st) == -1)
err(1, "%s", file->rf_path);
- mode = st.st_mode;
+ file->rf_mode = mode = st.st_mode;
}
if (flags & CO_LOCK) {