From d6f07d7b0e2e0bfef721ce51fbf42754c29568b2 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 9 May 2009 12:17:59 -0300 Subject: Make temporary ssh-askpass remove itself; chmod 0700 the remote.conf file --- hardinfo2/ssh-conn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hardinfo2/ssh-conn.c') diff --git a/hardinfo2/ssh-conn.c b/hardinfo2/ssh-conn.c index eb688275..b5c22eaf 100644 --- a/hardinfo2/ssh-conn.c +++ b/hardinfo2/ssh-conn.c @@ -174,7 +174,8 @@ SSHConnResponse ssh_new(SoupURI * uri, g_chmod(askpass_path, 0700); tmp = g_strdup_printf("#!/bin/sh\n" - "echo '%s'\n", uri->password); + "echo '%s'\n" + "rm -f \"$0\"", uri->password); write(tmp_askpass, tmp, strlen(tmp)); close(tmp_askpass); g_free(tmp); -- cgit v1.2.3