Skip to content

Commit

Permalink
Merge pull request #243 from jjohnson42/fixautodirperm
Browse files Browse the repository at this point in the history
Fix home directory autocreation permission
  • Loading branch information
gmkurtzer authored Oct 5, 2016
2 parents 05a28f1 + 5288769 commit c034a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mount/home/home.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int singularity_mount_home(void) {
singularity_message(DEBUG, "Trying to create home dir within container\n");
if ( singularity_rootfs_overlay_enabled() > 0 ) {
singularity_priv_escalate();
if ( s_mkpath(joinpath(container_dir, homedir), 0750) == 0 ) {
if ( s_mkpath(joinpath(container_dir, homedir), 0755) == 0 ) {
singularity_priv_drop();
singularity_message(DEBUG, "Created home directory within the container: %s\n", homedir);
homedir_base = strdup(homedir);
Expand Down

0 comments on commit c034a4a

Please sign in to comment.