Репозитории ALT
Группа :: Система/Основа
Пакет: mingetty
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mingetty-1.01-alt-progname.patch
Скачать
Скачать
--- mingetty-1.00~/mingetty.c 2002-06-04 00:39:20 +0400
+++ mingetty-1.00/mingetty.c 2002-06-04 00:52:09 +0400
@@ -58,7 +58,7 @@
#define LOGIN " login: " /* login prompt */
/* name of this program (argv[0]) */
-static char *progname;
+extern const char *__progname;
/* on which tty line are we sitting? (e.g. tty1) */
static char *tty;
/* some information about this host */
@@ -380,7 +380,7 @@
static void usage (void)
{
- error ("usage: '%s tty' with e.g. tty=tty1", progname);
+ error ("usage: '%s tty' with e.g. tty=tty1", __progname);
}
static struct option const long_options[] = {
@@ -397,7 +397,6 @@
char *logname, *s;
int c;
- progname = argv[0];
uname (&uts);
gethostname (hn, MAXHOSTNAMELEN);
pid = getpid ();