Bug fix: Split file directories (-split_size) were created with wrong permissions
This commit is contained in:
@ -126,6 +126,7 @@ int Xorriso_graft_split(struct XorrisO *xorriso, IsoImage *volume,
|
||||
int partno, total_parts;
|
||||
off_t offset;
|
||||
char *part_name= NULL;
|
||||
struct stat stbuf;
|
||||
|
||||
Xorriso_alloc_meM(part_name, char, SfileadrL);
|
||||
|
||||
@ -133,6 +134,8 @@ int Xorriso_graft_split(struct XorrisO *xorriso, IsoImage *volume,
|
||||
if(ret < 0)
|
||||
goto ex;
|
||||
*node= (IsoNode *) new_dir;
|
||||
if(lstat(disk_path, &stbuf) != -1)
|
||||
Xorriso_transfer_properties(xorriso, &stbuf, disk_path, *node, 1 | 8);
|
||||
if(xorriso->update_flags & 1) {
|
||||
ret= Xorriso_mark_update_merge(xorriso, img_name, node, 1);
|
||||
if(ret <= 0)
|
||||
|
Reference in New Issue
Block a user