[patch] muxserver_listen() doesn't restore umask when bind fails

Salvador Fandino sfandino at yahoo.com
Thu Dec 4 22:30:26 EST 2008


Cheers,

- Salva

$ diff -c mux.c~ mux.c
*** mux.c~	2008-06-14 01:01:54.000000000 +0200
--- mux.c	2008-12-04 12:24:45.000000000 +0100
***************
*** 148,153 ****
--- 148,154 ----
   			error("ControlSocket %s already exists, "
   			    "disabling multiplexing", options.control_path);
   			close(muxserver_sock);
+                         umask(old_umask);
   			muxserver_sock = -1;
   			xfree(options.control_path);
   			options.control_path = NULL;



More information about the openssh-unix-dev mailing list