|
From: Tiziano M. <tiz...@us...> - 2009-02-19 09:13:51
|
Update of /cvsroot/evms/evms2/engine/tests In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv15026 Modified Files: seq_dd.c Log Message: Added mode flags to the open(..., O_CREAT) command as required (see http://www.opengroup.org/onlinepubs/009695399/functions/open.html) since compilation fails with gcc-4.3.3 Index: seq_dd.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/tests/seq_dd.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- seq_dd.c 23 Jan 2009 00:13:22 -0000 1.4 +++ seq_dd.c 19 Feb 2009 09:13:33 -0000 1.5 @@ -110,7 +110,8 @@ return 1; } - fd = open(filename, O_CREAT | O_WRONLY); + /* set the permissions of the newly created file at max to rw-r----- */ + fd = open(filename, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP); if (fd < 0) { fprintf(stderr, "Error opening \"%s\": %s\n", filename, strerror(errno)); |