fix for store dir becoming user read only on saving of server props
@@ -397,7 +397,8 @@ static apr_status_t mk_group_dir(const char **pdir, md_store_fs_t *s_fs,
perms = gperms(s_fs, group);
- if (APR_SUCCESS == (rv = fs_get_dname(pdir, &s_fs->s, group, name, p))) {
+ if (APR_SUCCESS == (rv = fs_get_dname(pdir, &s_fs->s, group, name, p))
+ && (MD_SG_NONE != group)) {
if (APR_SUCCESS != md_util_is_dir(*pdir, p)) {
if (APR_SUCCESS == (rv = apr_dir_make_recursive(*pdir, perms->dir, p))) {
rv = dispatch(s_fs, MD_S_FS_EV_CREATED, group, *pdir, APR_DIR, p);
