Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37882696
en ru br
Репозитории ALT
5.1: 2.86-alt2
4.1: 2.86-alt2
4.0: 2.86-alt1
3.0: 2.85-alt8
www.altlinux.org/Changes

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: SysVinit

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: sysvinit-2.86-alt-doc.patch
Скачать


diff -upk.orig sysvinit-2.86.orig/man/halt.8 sysvinit-2.86/man/halt.8
--- sysvinit-2.86.orig/man/halt.8	2007-01-06 14:53:10 +0000
+++ sysvinit-2.86/man/halt.8	2007-01-06 14:55:01 +0000
@@ -68,7 +68,7 @@ called as \fBpoweroff\fP.
 .\"}}}
 .\"{{{  Diagnostics
 .SH DIAGNOSTICS
-If you're not the superuser, you will get the message `must be superuser'.
+If you're not the superuser, you will get the message `operation not permitted'.
 .\"}}}
 .\"{{{  Notes
 .SH NOTES
diff -upk.orig sysvinit-2.86.orig/src/halt.c sysvinit-2.86/src/halt.c
--- sysvinit-2.86.orig/src/halt.c	2007-01-06 14:53:10 +0000
+++ sysvinit-2.86/src/halt.c	2007-01-06 14:55:01 +0000
@@ -223,7 +223,7 @@ int main(int argc, char **argv)
 	if (argc != optind) usage();
 
 	if (geteuid() != 0) {
-		fprintf(stderr, "%s: must be superuser.\n", progname);
+		fprintf(stderr, "%s: operation not permitted.\n", progname);
 		exit(1);
 	}
 
diff -upk.orig sysvinit-2.86.orig/src/init.c sysvinit-2.86/src/init.c
--- sysvinit-2.86.orig/src/init.c	2007-01-06 14:53:10 +0000
+++ sysvinit-2.86/src/init.c	2007-01-06 14:55:01 +0000
@@ -2619,7 +2619,7 @@ int main(int argc, char **argv)
 
 	/* Quick check */
 	if (geteuid() != 0) {
-		fprintf(stderr, "%s: must be superuser.\n",
+		fprintf(stderr, "%s: operation not permitted.\n",
 			program_invocation_short_name);
 		exit(1);
 	}
diff -upk.orig sysvinit-2.86.orig/src/shutdown.c sysvinit-2.86/src/shutdown.c
--- sysvinit-2.86.orig/src/shutdown.c	2007-01-06 14:53:10 +0000
+++ sysvinit-2.86/src/shutdown.c	2007-01-06 14:55:01 +0000
@@ -459,7 +459,7 @@ int main(int argc, char **argv)
 	setuid(geteuid());
 
 	if (getuid() != 0) {
-  		fprintf(stderr, "shutdown: you must be root to do that!\n");
+  		fprintf(stderr, "shutdown: operation not permitted.\n");
   		exit(1);
 	}
 	strcpy(down_level, "1");
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin