close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23466 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -84,7 +84,9 @@ read_string(const char *preprompt, const char *prompt, | ||||
| 	    if (sigaction(i, &sa, &sigs[i]) == 0) | ||||
| 		oksigs[i] = 1; | ||||
|  | ||||
|     if((tty = fopen("/dev/tty", "r")) == NULL) | ||||
|     if((tty = fopen("/dev/tty", "r")) != NULL) | ||||
| 	rk_cloexec_file(tty); | ||||
|     else | ||||
| 	tty = stdin; | ||||
|         | ||||
|     fprintf(stderr, "%s%s", preprompt, prompt); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand