mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Fix askpass.go on shm_syscall based systems
This commit is contained in:
@@ -439,7 +439,7 @@ func bootstrap_script(cd *connection_data) (err error) {
|
||||
if err == nil && !cd.dont_create_shm {
|
||||
data_shm, err = shm.CreateTemp(fmt.Sprintf("kssh-%d-", os.Getpid()), uint64(len(encoded_data)+8))
|
||||
if err == nil {
|
||||
err = data_shm.WriteWithSize(encoded_data)
|
||||
err = shm.WriteWithSize(data_shm, encoded_data, 0)
|
||||
if err == nil {
|
||||
err = data_shm.Flush()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user