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/165146cd27d1
branches:  trunk
changeset: 558628:165146cd27d1
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 f5a1c25f5074 -r 165146cd27d1 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