1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 90_shutdown_H.dpatch by Petter Reinholdtsen
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Make sure shutdown flags -H and -P are only given with -h flag,
6
## DP: and document this requirement in the manual page. Fixes bug
10
diff -urNad --exclude=CVS --exclude=.svn ./man/shutdown.8 /tmp/dpep-work.apEvIZ/trunk/man/shutdown.8
11
--- ./man/shutdown.8 2006-02-01 14:32:46.000000000 +0100
12
+++ /tmp/dpep-work.apEvIZ/trunk/man/shutdown.8 2006-02-01 14:36:39.000000000 +0100
17
-Halt action is to halt or drop into boot monitor on systems that
19
+Modifier to the -h flag. Halt action is to halt or drop into boot
20
+monitor on systems that support it. Must be used with the -h flag.
24
diff -urNad --exclude=CVS --exclude=.svn ./src/shutdown.c /tmp/dpep-work.apEvIZ/trunk/src/shutdown.c
25
--- ./src/shutdown.c 2005-12-02 17:22:57.000000000 +0100
26
+++ /tmp/dpep-work.apEvIZ/trunk/src/shutdown.c 2006-02-01 14:32:49.000000000 +0100
31
+ if (NULL != halttype && down_level[0] != '0') {
32
+ fprintf(stderr, "shutdown: -H and -P flags can only be used along with -h flag.\n");
37
/* Do we need to use the shutdown.allow file ? */
38
if (useacl && (fp = fopen(SDALLOW, "r")) != NULL) {