Changeset: 834827b379c0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=834827b379c0
Modified Files:
        tools/merovingian/daemon/merovingian.c
Branch: Apr2012
Log Message:

backout changeset 93f7af3603b8, it breaks compilation

On Fedora 16 (sofia):

/usr/include/bits/fcntl2.h:45:26: error: call to ?__open_too_many_args?
declared with attribute error: open can be called either with 2 or 3
arguments, not more

We probably should do a configure check for this to get it right.


diffs (12 lines):

diff --git a/tools/merovingian/daemon/merovingian.c 
b/tools/merovingian/daemon/merovingian.c
--- a/tools/merovingian/daemon/merovingian.c
+++ b/tools/merovingian/daemon/merovingian.c
@@ -910,7 +910,7 @@ main(int argc, char *argv[])
        p = getConfVal(_mero_props, "logfile");
        /* write to the given file */
        _mero_topdp->out = open(p, O_WRONLY | O_APPEND | O_CREAT,
-                       S_IRUSR | S_IWUSR, 0666);
+                       S_IRUSR | S_IWUSR);
        if (_mero_topdp->out == -1) {
                Mfprintf(stderr, "unable to open '%s': %s\n",
                                p, strerror(errno));
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to