=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/co.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -r1.92 -r1.93 --- src/usr.bin/rcs/co.c 2006/05/27 05:49:14 1.92 +++ src/usr.bin/rcs/co.c 2006/05/27 08:12:29 1.93 @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.92 2006/05/27 05:49:14 ray Exp $ */ +/* $OpenBSD: co.c,v 1.93 2006/05/27 08:12:29 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -369,8 +369,8 @@ /* * File inherits permissions from its ,v file */ - if (file->fd != -1) { - if (fstat(file->fd, &st) == -1) + if (file->rf_fd != -1) { + if (fstat(file->rf_fd, &st) == -1) err(1, "%s", file->rf_path); mode = st.st_mode; } @@ -385,7 +385,7 @@ } /* Strip all write bits from mode */ - if (file->fd != -1) { + if (file->rf_fd != -1) { mode = st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH); } @@ -406,7 +406,7 @@ } /* Strip all write bits from mode */ - if (file->fd != -1) { + if (file->rf_fd != -1) { mode = st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH); }