AC_PREREQ(2.57)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
#AC_WITH_LTDL # not needed ?
-AM_INIT_AUTOMAKE(ltt-control,0.68-19062009)
+AM_INIT_AUTOMAKE(ltt-control,0.69-23072009)
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
path_trace);
fd_pairs->pair[fd_pairs->num_pairs-1].trace =
- open(path_trace, O_WRONLY|O_APPEND,
+ open(path_trace, O_WRONLY,
S_IRWXU|S_IRWXG|S_IRWXO);
-
if(fd_pairs->pair[fd_pairs->num_pairs-1].trace == -1) {
perror(path_trace);
}
+ ret = lseek(fd_pairs->pair[fd_pairs->num_pairs-1].trace,
+ 0, SEEK_END);
+ if (ret < 0) {
+ perror(path_trace);
+ }
} else {
printf("File %s exists, cannot open. Try append mode.\n", path_trace);
open_ret = -1;