@@ -375,9 +375,6 @@ fn xauth(display_name: [:0]u8, shell: [*:0]const u8, pw_dir: [*:0]const u8, opti
375
375
376
376
const pid = try std .posix .fork ();
377
377
if (pid == 0 ) {
378
- const log_file = try redirectStandardStreams (options .session_log , true );
379
- defer log_file .close ();
380
-
381
378
var cmd_buffer : [1024 ]u8 = undefined ;
382
379
const cmd_str = std .fmt .bufPrintZ (& cmd_buffer , "{s} add {s} . {s}" , .{ options .xauth_cmd , display_name , magic_cookie }) catch std .process .exit (1 );
383
380
const args = [_ :null ]? [* :0 ]const u8 { shell , "-c" , cmd_str };
@@ -417,7 +414,7 @@ fn executeX11Cmd(shell: [*:0]const u8, pw_dir: [*:0]const u8, options: AuthOptio
417
414
const pid = try std .posix .fork ();
418
415
if (pid == 0 ) {
419
416
var cmd_buffer : [1024 ]u8 = undefined ;
420
- const cmd_str = std .fmt .bufPrintZ (& cmd_buffer , "{s} {s} {s} >{s} 2>&1 " , .{ options .x_cmd , display_name , vt , options . session_log }) catch std .process .exit (1 );
417
+ const cmd_str = std .fmt .bufPrintZ (& cmd_buffer , "{s} {s} {s}" , .{ options .x_cmd , display_name , vt }) catch std .process .exit (1 );
421
418
const args = [_ :null ]? [* :0 ]const u8 { shell , "-c" , cmd_str };
422
419
std .posix .execveZ (shell , & args , std .c .environ ) catch {};
423
420
std .process .exit (1 );
@@ -440,7 +437,7 @@ fn executeX11Cmd(shell: [*:0]const u8, pw_dir: [*:0]const u8, options: AuthOptio
440
437
xorg_pid = try std .posix .fork ();
441
438
if (xorg_pid == 0 ) {
442
439
var cmd_buffer : [1024 ]u8 = undefined ;
443
- const cmd_str = std .fmt .bufPrintZ (& cmd_buffer , "{s} {s} {s} >{s} 2>&1 " , .{ options .setup_cmd , options .login_cmd orelse "" , desktop_cmd , options . session_log }) catch std .process .exit (1 );
440
+ const cmd_str = std .fmt .bufPrintZ (& cmd_buffer , "{s} {s} {s}" , .{ options .setup_cmd , options .login_cmd orelse "" , desktop_cmd }) catch std .process .exit (1 );
444
441
const args = [_ :null ]? [* :0 ]const u8 { shell , "-c" , cmd_str };
445
442
std .posix .execveZ (shell , & args , std .c .environ ) catch {};
446
443
std .process .exit (1 );
0 commit comments