Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038886
en ru br
Репозитории ALT
S:1.4g-alt4
5.1: 1.4a-alt1
4.1: 1.4a-alt1
4.0: 1.4a-alt1
3.0: 1.3-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:1.4a

Группа :: Сети/Удалённый доступ
Пакет: 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);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin