Index: invutil/invidx.c =================================================================== RCS file: /cvs/xfs-cmds/xfsdump/invutil/invidx.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -u -r1.7 -r1.8 --- invutil/invidx.c 24 May 2006 06:08:55 -0000 1.7 +++ invutil/invidx.c 24 Aug 2007 19:36:15 -0000 1.8 @@ -275,7 +275,7 @@ return 0; } - new_fd = open(dst_idxfile, O_CREAT|O_RDWR); + new_fd = open(dst_idxfile, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR); if(new_fd < 0) { put_error("Error: unable to open inventory index file"); return 0; @@ -616,7 +616,7 @@ invt_sescounter_t sescnt; /* create the new storage object */ - if (( fd = open( fname, O_RDWR | O_EXCL | O_CREAT )) < 0 ) { + if (( fd = open( fname, O_RDWR | O_EXCL | O_CREAT, S_IRUSR|S_IWUSR )) < 0 ) { return -1; }