Implemented options -chown and -chgrp (not written into image, though)
This commit is contained in:
@ -2486,3 +2486,34 @@ int Xorriso_set_st_mode(struct XorrisO *xorriso, char *in_path,
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_set_uid(struct XorrisO *xorriso, char *in_path, uid_t uid,
|
||||
int flag)
|
||||
{
|
||||
int ret;
|
||||
struct iso_tree_node *node;
|
||||
|
||||
ret= Xorriso_get_node_by_path(xorriso, in_path, NULL, &node, 0);
|
||||
if(ret<=0)
|
||||
return(ret);
|
||||
iso_tree_node_set_uid(node, uid);
|
||||
xorriso->volset_change_pending= 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_set_gid(struct XorrisO *xorriso, char *in_path, gid_t gid,
|
||||
int flag)
|
||||
{
|
||||
int ret;
|
||||
struct iso_tree_node *node;
|
||||
|
||||
ret= Xorriso_get_node_by_path(xorriso, in_path, NULL, &node, 0);
|
||||
if(ret<=0)
|
||||
return(ret);
|
||||
iso_tree_node_set_gid(node, gid);
|
||||
xorriso->volset_change_pending= 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user