pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files creat -> open
details: https://anonhg.NetBSD.org/pkgsrc/rev/412bd68e4766
branches: trunk
changeset: 392776:412bd68e4766
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat May 09 20:00:39 2009 +0000
description:
creat -> open
diffstat:
devel/nbpatch/files/inp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 38b753bae197 -r 412bd68e4766 devel/nbpatch/files/inp.c
--- a/devel/nbpatch/files/inp.c Sat May 09 19:14:40 2009 +0000
+++ b/devel/nbpatch/files/inp.c Sat May 09 20:00:39 2009 +0000
@@ -1,7 +1,7 @@
/*
* $OpenBSD: inp.c,v 1.34 2006/03/11 19:41:30 otto Exp $
* $DragonFly: src/usr.bin/patch/inp.c,v 1.6 2007/09/29 23:11:10 swildner Exp $
- * $NetBSD: inp.c,v 1.2 2008/09/16 11:59:29 joerg Exp $
+ * $NetBSD: inp.c,v 1.3 2009/05/09 20:00:39 joerg Exp $
*/
/*
@@ -170,7 +170,7 @@
if (check_only)
return true;
makedirs(filename, true);
- close(creat(filename, 0666));
+ close(open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666));
statfailed = stat(filename, &filestat);
}
if (statfailed && check_only)
Home |
Main Index |
Thread Index |
Old Index