mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
one more code style fix
This commit is contained in:
parent
c9b79561a4
commit
bca89e76de
@ -849,7 +849,7 @@ static bool TrySuCommandFlag(const char* flag) {
|
||||
close( write_end );
|
||||
// We redirect stderr to /dev/null because by nature this function
|
||||
// tries incorrect command lines.
|
||||
int null_fd = open("/dev/null", O_WRONLY);
|
||||
int null_fd = open( "/dev/null", O_WRONLY );
|
||||
dup2( null_fd, STDERR_FILENO );
|
||||
execlp( "su", "su", flag, "id", "-u", nullptr );
|
||||
exit( EXIT_FAILURE );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user