Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37888480
en ru br
ALT Linux repos
S:1.4g-alt4
5.0: 1.4a-alt1
4.1: 1.4a-alt1
4.0: 1.4a-alt1
3.0: 1.3-alt1

Other repositories
Upstream:1.4a

Group :: Networking/Remote access
RPM: autossh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: autossh-1.4a-alt-setproctitle.patch
Download


--- autossh-1.4a/autossh.c
+++ autossh-1.4a/autossh.c
@@ -61,6 +61,10 @@
 #  include <poll.h>
 #endif
 
+#ifdef HAVE_SETPROCTITLE_H
+# include <setproctitle.h>
+#endif
+
 #ifndef __attribute__
 #  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 #    define __attribute__(x)
@@ -281,7 +285,7 @@ main(int argc, char **argv)
 		switch(ch) {
 		case 'M':
 			if (!env_port)
-				writep = optarg;
+				writep = strdup(optarg);
 			break;
 		case 'V':
 			fprintf(stdout, "%s %s\n", __progname, VER);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin