main shm BUGFIX for keeping previous permissions -1 is used
Fixes
@@ -1376,7 +1376,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm)
cur_group = group;
}
if (perm == cur_perm) {
- cur_perm = 0;
+ cur_perm = (mode_t)-1;
} else {
cur_perm = perm;
}
@@ -1425,7 +1425,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm)
cur_group = group;
}
if (perm == cur_perm) {
- cur_perm = 0;
+ cur_perm = (mode_t)-1;
} else {
cur_perm = perm;
}
