diff options
-rw-r--r-- | usr.bin/rcs/co.c | 4 |
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) { |