Better attributes with directories

This commit is contained in:
Thomas Schmitt 2008-01-22 22:44:17 +00:00
parent 98a7e48bca
commit 775d21a794
2 changed files with 4 additions and 1 deletions

View File

@ -1279,6 +1279,8 @@ handle_path_node:;
dir= hdir; dir= hdir;
xorriso->volset_change_pending= 1; xorriso->volset_change_pending= 1;
iso_node_set_ctime((IsoNode *) dir, time(NULL)); iso_node_set_ctime((IsoNode *) dir, time(NULL));
iso_node_set_uid((IsoNode *) dir, geteuid());
iso_node_set_gid((IsoNode *) dir, getegid());
/* >>> copy properties from correspondent directory in disk_path /* >>> copy properties from correspondent directory in disk_path
if there is any */; if there is any */;
@ -1290,6 +1292,7 @@ attach_source:;
/* directory node was created above */; /* directory node was created above */;
} else if(is_dir) { } else if(is_dir) {
Xorriso_transfer_properties(xorriso, &stbuf, (IsoNode *) dir, 0);
ret= Xorriso_add_tree(xorriso, dir, img_path, disk_path, NULL, 0); ret= Xorriso_add_tree(xorriso, dir, img_path, disk_path, NULL, 0);
if(ret<=0) if(ret<=0)
return(ret); return(ret);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.01.21.221939" #define Xorriso_timestamP "2008.01.22.224321"