Commit a5b344c9 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Convert menu paths (e.g. /sbbs/text/menu/../filename) to full paths

If text/menu is a symlink (on *nix), then the path above would actually
point to a filename in the parent of the symlink target, which is not
what we want (we want the filename in the text dir). Fixed by using
parent 22faceee
......@@ -317,6 +317,8 @@ bool sbbs_t::menu_exists(const char *code, const char* ext, char* path)
else {
SAFEPRINTF3(prefix, "%smenu/%s%s", cfg.text_dir, menu_dir, code);
FULLPATH(path, prefix, MAX_PATH);
SAFECOPY(prefix, path);
safe_snprintf(path, MAX_PATH, "%s.%lucol.%s", prefix, cols, ext);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment