New default permission on / directory: rwxr-xr-x

This commit is contained in:
Thomas Schmitt 2012-02-27 15:02:25 +00:00
parent 46293e457b
commit d09ee8335e
4 changed files with 25 additions and 1 deletions

View File

@ -162,6 +162,9 @@ int isoburn_new(struct isoburn **objpt, int flag)
isoburn_report_iso_error(ret, "Cannot create image object", 0, "FATAL", 0); isoburn_report_iso_error(ret, "Cannot create image object", 0, "FATAL", 0);
goto failed; goto failed;
} }
ret= isoburn_root_defaults(o->image, 0);
if(ret <= 0)
goto failed;
isoburn_link(o, isoburn_list_start, 1); isoburn_link(o, isoburn_list_start, 1);
return(1); return(1);
failed:; failed:;

View File

@ -285,6 +285,12 @@ int isoburn_data_source_shutdown(IsoDataSource *src, int flag);
int isoburn_adjust_target_iso_head(struct isoburn *o, int isoburn_adjust_target_iso_head(struct isoburn *o,
uint32_t offst, int flag); 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. * Options for image reading.
(Comments here may be outdated. API getter/setter function descriptions (Comments here may be outdated. API getter/setter function descriptions

View File

@ -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 /* API function. See libisoburn.h
*/ */
int isoburn_read_image(struct burn_drive *d, int isoburn_read_image(struct burn_drive *d,
@ -192,6 +203,10 @@ create_blank_image:;
} }
iso_image_set_ignore_aclea(o->image, iso_image_set_ignore_aclea(o->image,
(!!(read_opts->noacl)) | ((!!read_opts->noea) << 1) ); (!!(read_opts->noacl)) | ((!!read_opts->noea) << 1) );
ret= isoburn_root_defaults(*image, 0);
if(ret <= 0)
goto ex;
} }
{ret= 1; goto ex;} {ret= 1; goto ex;}
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.02.25.194514" #define Xorriso_timestamP "2012.02.27.150241"