Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP5:Update
renderdoc
0004-Don-t-open-symlinks-when-opening-logfile.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Don-t-open-symlinks-when-opening-logfile.patch of Package renderdoc
From feefe5be9498d2887359fb75f0dbdd95d06613d9 Mon Sep 17 00:00:00 2001 From: baldurk <baldurk@baldurk.org> Date: Fri, 19 May 2023 10:47:12 +0100 Subject: [PATCH 4/5] Don't open symlinks when opening logfile --- renderdoc/os/posix/posix_stringio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/posix/posix_stringio.cpp b/renderdoc/os/posix/posix_stringio.cpp index f27bad820..495f2def0 100644 --- a/renderdoc/os/posix/posix_stringio.cpp +++ b/renderdoc/os/posix/posix_stringio.cpp @@ -505,8 +505,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) { -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor