@@ -470,7 +470,7 @@ func forkAndExecInChild1(argv0 *byte, argv, envv []*byte, chroot, dir *byte, att
470
470
// so it is safe to always use _LINUX_CAPABILITY_VERSION_3.
471
471
caps .hdr .version = _LINUX_CAPABILITY_VERSION_3
472
472
473
- if _ , _ , err1 : = RawSyscall (SYS_CAPGET , uintptr (unsafe .Pointer (& caps .hdr )), uintptr (unsafe .Pointer (& caps .data [0 ])), 0 ); err1 != 0 {
473
+ if _ , _ , err1 = RawSyscall (SYS_CAPGET , uintptr (unsafe .Pointer (& caps .hdr )), uintptr (unsafe .Pointer (& caps .data [0 ])), 0 ); err1 != 0 {
474
474
goto childerror
475
475
}
476
476
@@ -481,7 +481,7 @@ func forkAndExecInChild1(argv0 *byte, argv, envv []*byte, chroot, dir *byte, att
481
481
caps .data [capToIndex (c )].inheritable |= capToMask (c )
482
482
}
483
483
484
- if _ , _ , err1 : = RawSyscall (SYS_CAPSET , uintptr (unsafe .Pointer (& caps .hdr )), uintptr (unsafe .Pointer (& caps .data [0 ])), 0 ); err1 != 0 {
484
+ if _ , _ , err1 = RawSyscall (SYS_CAPSET , uintptr (unsafe .Pointer (& caps .hdr )), uintptr (unsafe .Pointer (& caps .data [0 ])), 0 ); err1 != 0 {
485
485
goto childerror
486
486
}
487
487
@@ -514,7 +514,7 @@ func forkAndExecInChild1(argv0 *byte, argv, envv []*byte, chroot, dir *byte, att
514
514
r1 , _ = rawSyscallNoError (SYS_GETPPID , 0 , 0 , 0 )
515
515
if r1 != ppid {
516
516
pid , _ := rawSyscallNoError (SYS_GETPID , 0 , 0 , 0 )
517
- _ , _ , err1 : = RawSyscall (SYS_KILL , pid , uintptr (sys .Pdeathsig ), 0 )
517
+ _ , _ , err1 = RawSyscall (SYS_KILL , pid , uintptr (sys .Pdeathsig ), 0 )
518
518
if err1 != 0 {
519
519
goto childerror
520
520
}
0 commit comments