mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 08:05:42 +00:00
Don't open symlinks when opening logfile
This commit is contained in:
@@ -497,8 +497,8 @@ rdcstr logfile_readall(uint64_t offset, const rdcstr &filename)
|
||||
|
||||
LogFileHandle *logfile_open(const rdcstr &filename)
|
||||
{
|
||||
int fd =
|
||||
open(filename.c_str(), O_APPEND | O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
||||
int fd = open(filename.c_str(), O_APPEND | O_WRONLY | O_CREAT | O_NOFOLLOW,
|
||||
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
||||
|
||||
if(fd < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user