diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-03 09:49:38 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-03 09:49:38 +0000 |
commit | feb82c8efd45f85e818e3da911334393992b092e (patch) | |
tree | 1e4683822c37d23e5a9cfa5f7518cce8523e442f /usr.bin/cvs | |
parent | 42f78c7839def9b2dd2fbdcfb204a780b16e37a5 (diff) |
set permissions back on the file after it got copied from the
CVS/Base/ directory.
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)); } |