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

Use correct string for file path when removing file for non dir-ops

Fix issue reported by Jay Crutti.
parent bd5e5a3f
......@@ -874,8 +874,8 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
}
}
}
else if(remove(str)) /* always remove if not sysop */
bprintf(text[CouldntRemoveFile],str);
else if(remove(path)) /* always remove if not sysop */
bprintf(text[CouldntRemoveFile],path);
}
}
if(dir_op(dirnum) || useron.exempt&FLAG('R')) {
......
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