New default permission on / directory: rwxr-xr-x
This commit is contained in:
parent
46293e457b
commit
d09ee8335e
@ -162,6 +162,9 @@ int isoburn_new(struct isoburn **objpt, int flag)
|
||||
isoburn_report_iso_error(ret, "Cannot create image object", 0, "FATAL", 0);
|
||||
goto failed;
|
||||
}
|
||||
ret= isoburn_root_defaults(o->image, 0);
|
||||
if(ret <= 0)
|
||||
goto failed;
|
||||
isoburn_link(o, isoburn_list_start, 1);
|
||||
return(1);
|
||||
failed:;
|
||||
|
@ -285,6 +285,12 @@ int isoburn_data_source_shutdown(IsoDataSource *src, int flag);
|
||||
int isoburn_adjust_target_iso_head(struct isoburn *o,
|
||||
uint32_t offst, int flag);
|
||||
|
||||
|
||||
/** Initialize the root directory attributes of a freshly created image.
|
||||
*/
|
||||
int isoburn_root_defaults(IsoImage *image, int flag);
|
||||
|
||||
|
||||
/**
|
||||
* Options for image reading.
|
||||
(Comments here may be outdated. API getter/setter function descriptions
|
||||
|
@ -126,6 +126,17 @@ static void isoburn_idle_free_function(void *ignored)
|
||||
}
|
||||
|
||||
|
||||
int isoburn_root_defaults(IsoImage *image, int flag)
|
||||
{
|
||||
IsoNode *root_node;
|
||||
mode_t root_mode= 0755;
|
||||
|
||||
root_node= (IsoNode *) iso_image_get_root(image);
|
||||
iso_node_set_permissions(root_node, root_mode);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
/* API function. See libisoburn.h
|
||||
*/
|
||||
int isoburn_read_image(struct burn_drive *d,
|
||||
@ -192,6 +203,10 @@ create_blank_image:;
|
||||
}
|
||||
iso_image_set_ignore_aclea(o->image,
|
||||
(!!(read_opts->noacl)) | ((!!read_opts->noea) << 1) );
|
||||
|
||||
ret= isoburn_root_defaults(*image, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
}
|
||||
{ret= 1; goto ex;}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2012.02.25.194514"
|
||||
#define Xorriso_timestamP "2012.02.27.150241"
|
||||
|
Loading…
Reference in New Issue
Block a user