I'm currently holding the release off so others can comment on the patch.
copy_file(tmphistory, storedhistory, 11); /* 11 = force copy & preserve permissions */
if (access(CONFIG_ASH_HIST_BUFFER_PATH, R_OK == -1)) bb_make_directory(xasprintf("%s", CONFIG_ASH_HIST_BUFFER_PATH), 01777,
tmphistory = concat_path_file(CONFIG_ASH_HIST_BUFFER_PATH, xasprintf(".ash_hist_%s", user));
close(open(storedhistory, O_WRONLY | O_CREAT, 0644));
if (access(tmphistory, R_OK | W_OK) == -1) copy_file(storedhistory, tmphistory, 11); /* 11 = force copy & preserve permissions */