Группа :: Сети/Удалённый доступ
Пакет: autossh
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: autossh-1.4a-alt-setproctitle.patch
Скачать
Скачать
--- 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);