]> git.pld-linux.org Git - packages/yaboot.git/blob - yaboot-bash.patch
- up to 1.3.17 (untested)
[packages/yaboot.git] / yaboot-bash.patch
1 diff -uNr yaboot-1.3.6.orig/man.patch yaboot-1.3.6/man.patch
2 --- yaboot-1.3.6.orig/man.patch Wed Nov 21 14:19:21 2001
3 +++ yaboot-1.3.6/man.patch      Tue Mar 19 03:03:23 2002
4 @@ -26,7 +26,7 @@
5   The Debian mktemp is derived from OpenBSD and thus should be secure.
6   
7  -\fI/usr/local/lib/yaboot/ofboot\fR now contains code executed by /bin/sh (by
8 -+\fI/usr/lib/yaboot/ofboot\fR now contains code executed by /bin/sh (by
9 ++\fI/usr/lib/yaboot/ofboot\fR now contains code executed by /bin/bash (by
10   \fBmkofboot\fR) it is thus critical that it not be writable by anyone
11   but root.  It is also critical that \fI/etc/yaboot.conf\fR not be
12   writable by anyone but root since a different \fIofboot\fR script could be
13 @@ -126,7 +126,7 @@
14   The Debian mktemp is derived from OpenBSD and thus should be secure.
15   
16  -\fI/usr/local/lib/yaboot/ofboot\fR now contains code executed by /bin/sh (by
17 -+\fI/usr/lib/yaboot/ofboot\fR now contains code executed by /bin/sh (by
18 ++\fI/usr/lib/yaboot/ofboot\fR now contains code executed by /bin/bash (by
19   \fBybin\fR). It is thus critical that it not be writable by anyone but
20   root.  It is also critical that \fI/etc/yaboot.conf\fR not be writable
21   by anyone but root since a different \fIofboot\fR script could be
22 diff -uNr yaboot-1.3.6.orig/ybin/ofpath yaboot-1.3.6/ybin/ofpath
23 --- yaboot-1.3.6.orig/ybin/ofpath       Thu Sep 20 15:15:32 2001
24 +++ yaboot-1.3.6/ybin/ofpath    Tue Mar 19 03:01:31 2002
25 @@ -1,4 +1,4 @@
26 -#! /bin/sh
27 +#! /bin/bash
28  
29  ###############################################################################
30  ##
31 diff -uNr yaboot-1.3.6.orig/ybin/yabootconfig yaboot-1.3.6/ybin/yabootconfig
32 --- yaboot-1.3.6.orig/ybin/yabootconfig Wed Nov 21 13:55:37 2001
33 +++ yaboot-1.3.6/ybin/yabootconfig      Tue Mar 19 03:01:42 2002
34 @@ -1,4 +1,4 @@
35 -#! /bin/sh
36 +#! /bin/bash
37  
38  ###############################################################################
39  ##
40 diff -uNr yaboot-1.3.6.orig/ybin/ybin yaboot-1.3.6/ybin/ybin
41 --- yaboot-1.3.6.orig/ybin/ybin Sat Dec  1 10:58:11 2001
42 +++ yaboot-1.3.6/ybin/ybin      Tue Mar 19 03:02:02 2002
43 @@ -1,4 +1,4 @@
44 -#! /bin/sh
45 +#! /bin/bash
46  
47  ###############################################################################
48  ##
49 @@ -1192,8 +1192,8 @@
50  
51      ## call ofboot,
52      ## Usage: OS-count defaultos timeout fgc bgc osname oslabel oskey osdev osfile ...
53 -    [ "$DEBUG" = 1 ] && $PRINTF 1>&2 "$PRG: DEBUG: /bin/sh $magicboot $OS $defaultos $delay $fbc $bgc $YB $BSD $MAC $MX $DW $CD $NET $OF\n"
54 -    FIRST="$(/bin/sh "$magicboot" "$OS" "$defaultos" "$delay" $fgc $bgc ${YB} ${BSD} ${MAC} ${MX} ${DW} ${CD} ${NET} ${OF})" || return 1
55 +    [ "$DEBUG" = 1 ] && $PRINTF 1>&2 "$PRG: DEBUG: /bin/bash $magicboot $OS $defaultos $delay $fbc $bgc $YB $BSD $MAC $MX $DW $CD $NET $OF\n"
56 +    FIRST="$(/bin/bash "$magicboot" "$OS" "$defaultos" "$delay" $fgc $bgc ${YB} ${BSD} ${MAC} ${MX} ${DW} ${CD} ${NET} ${OF})" || return 1
57  
58      return 0
59  }
This page took 0.056264 seconds and 3 git commands to generate.