1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/sysutils/wmshutdown/files/patch-ab

21 lines
600 B
Plaintext

--- shutdown.c Sun Dec 1 23:28:23 2002
+++ shutdown.c Sun Dec 1 23:29:16 2002
@@ -18,7 +18,7 @@
FILE *output;
printf("Rebooting...\n");
- output = popen("/sbin/shutdown now -r", "r");
+ output = popen("/sbin/shutdown -r now", "r");
teste = (char*) fgetc(output);
while ((int)teste != EOF) {
printf("%c", teste);
@@ -32,7 +32,7 @@
FILE *output;
printf("Halting...\n");
- output = popen("/sbin/shutdown now -h", "r");
+ output = popen("/sbin/shutdown -h now", "r");
teste = (char*) fgetc(output);
while ((int)teste != EOF) {
printf("%c", teste);