diff options
author | 2007-01-03 09:49:37 +0000 | |
---|---|---|
committer | 2007-01-03 09:49:37 +0000 | |
commit | 2b484273e55a1a8d41d2886fca059370b2d46c8b (patch) | |
tree | 201c3825f1d3c559900a6eb977133d647ff92bfa | |
parent | spacing (diff) | |
download | wireguard-openbsd-2b484273e55a1a8d41d2886fca059370b2d46c8b.tar.xz wireguard-openbsd-2b484273e55a1a8d41d2886fca059370b2d46c8b.zip |
set permissions back on the file after it got copied from the
CVS/Base/ directory.
-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)); } |