diff options
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/edit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/edit.c b/usr.bin/cvs/edit.c index 27783c7e946..b745509e20d 100644 --- a/usr.bin/cvs/edit.c +++ b/usr.bin/cvs/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.15 2007/01/02 14:51:18 xsa Exp $ */ +/* $OpenBSD: edit.c,v 1.16 2007/01/03 09:49:37 xsa Exp $ */ /* * Copyright (c) 2006, 2007 Xavier Santolaria <xsa@openbsd.org> * @@ -198,4 +198,7 @@ cvs_unedit_local(struct cvs_file *cf) (void)fclose(fp); /* XXX: Update revision number in CVS/Entries from CVS/Baserev */ + + if (fchmod(cf->fd, 0644) == -1) + fatal("cvs_unedit_local: fchmod %s", strerror(errno)); } |