*** mtmemu-0.1-orig/utils/utils.c 2007-12-11 18:28:38.000000000 +0200 --- mtmemu-0.1/utils/utils.c 2009-02-08 11:46:43.000000000 +0200 *************** *** 109,121 **** { int fh; ssize_t res; ! fprintf(stderr, "MJK - Opening %s\n", opt_storage_file); ! fh = open(opt_storage_file, O_WRONLY | O_TRUNC | O_CREAT); if (fh < 0) { ! perror("tpm_write_to_file"); ! return -1; } - fprintf(stderr, "MJK - Writing %s\n", opt_storage_file); while (data_length > 0) { res = write(fh, data, data_length); if (res < 0) { --- 109,119 ---- { int fh; ssize_t res; ! fh = open(opt_storage_file, O_WRONLY | O_TRUNC | O_CREAT, S_IRWXU); if (fh < 0) { ! perror("tpm_write_to_file"); ! return -1; } while (data_length > 0) { res = write(fh, data, data_length); if (res < 0) {