I'm puzzled how it builds anywhere:
CC src/apps/user/ofs_cp.o
src/apps/user/ofs_cp.c: In function 'main':
src/apps/user/ofs_cp.c:172: warning: ignoring return value of 'getcwd',
declared with attribute warn_unused_result
src/apps/user/ofs_cp.c:196: warning: ignoring return value of 'getcwd',
declared with attribute warn_unused_result
src/apps/user/ofs_cp.c:226: warning: ignoring return value of 'getcwd',
declared with attribute warn_unused_result
src/apps/user/ofs_cp.c: In function 'parse_args':
src/apps/user/ofs_cp.c:555: warning: ignoring return value of 'getcwd',
declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:265,
from src/apps/user/ofs_cp.c:20:
In function 'open',
inlined from 'copy_file' at src/apps/user/ofs_cp.c:374:
/usr/include/bits/fcntl2.h:45: error: call to '__open_too_many_args' declared
with attribute error: open can be called either with 2 or 3 arguments, not more
make: *** [src/apps/user/ofs_cp.o] Error 1
Was this intended? (I can't currently test the resulting build.)
--- orangefs-2.9.2/src/apps/user/ofs_cp.c~ 2015-06-09 19:42:53.000000000 +0100
+++ orangefs-2.9.2/src/apps/user/ofs_cp.c 2015-06-12 11:01:38.463215561 +0100
@@ -371,7 +371,7 @@
open_flags |= O_HINTS;
}
- dst = open(destfile, open_flags, 0600, hints);
+ dst = open(destfile, open_flags, 0600);
if (dst < 0)
{
fprintf(stderr, "Could not open dest file %s\n", destfile);
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users