diff options
author | Saul Wold <sgw@linux.intel.com> | 2010-12-29 22:32:25 -0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-30 12:06:52 +0000 |
commit | 8494db74786307d44169bee4f21dc0efa1643f70 (patch) | |
tree | e98730fc6ed3c971fb5bfd6e8e96b5ef035ddc93 /meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch | |
parent | c0e6d3ea6a819d5f776d861a8336b18cfab5f316 (diff) | |
download | poky-8494db74786307d44169bee4f21dc0efa1643f70.tar.gz |
man: updated to 1.6f, fixed patches
Rebased patches for 1.6f:
- lzma - modified for xz support
- ro_usr & whatis2 fixed up
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch')
-rw-r--r-- | meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch b/meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch new file mode 100644 index 0000000000..85fdf4e5fc --- /dev/null +++ b/meta/recipes-extended/man/man-1.6f/man-1.6e-security.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | diff -Naur man-1.6e.orig/src/makewhatis.sh man-1.6e/src/makewhatis.sh | ||
2 | --- man-1.6e.orig/src/makewhatis.sh 2006-07-19 01:58:08.000000000 -0300 | ||
3 | +++ man-1.6e/src/makewhatis.sh 2007-05-18 10:18:31.000000000 -0300 | ||
4 | @@ -45,7 +45,7 @@ | ||
5 | # and should be first. | ||
6 | # It is a bug to add /var/cache/man to DEFCATPATH. | ||
7 | dm= | ||
8 | -for d in /usr/man /usr/share/man /usr/X11R6/man /usr/local/man | ||
9 | +for d in /usr/share/man /usr/man /usr/X11R6/man /usr/local/man | ||
10 | do | ||
11 | if [ -d $d ]; then | ||
12 | if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi | ||
13 | @@ -53,7 +53,7 @@ | ||
14 | done | ||
15 | DEFMANPATH=$dm | ||
16 | dc= | ||
17 | -for d in /usr/man/preformat /usr/man /usr/share/man/preformat /usr/share/man | ||
18 | +for d in /var/cache/man /usr/share/man/preformat /usr/man/preformat /usr/share/man /usr/man | ||
19 | do | ||
20 | if [ -d $d ]; then | ||
21 | if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi | ||
22 | @@ -76,12 +76,12 @@ | ||
23 | # We try here to be careful (and avoid preconstructed symlinks) | ||
24 | # in case makewhatis is run as root, by creating a subdirectory of /tmp. | ||
25 | |||
26 | -TMPFILEDIR=/tmp/whatis.tmp.dir.$$ | ||
27 | -rm -rf $TMPFILEDIR | ||
28 | -if ! mkdir -m 0700 $TMPFILEDIR; then | ||
29 | - echo Could not create $TMPFILEDIR | ||
30 | - exit 1; | ||
31 | +TMPFILEDIR=`mktemp -d /tmp/makewhatisXXXXXX` | ||
32 | +if [ $? -ne 0 ]; then | ||
33 | + echo "$0: Can't create temp file, exiting..." | ||
34 | + exit 1 | ||
35 | fi | ||
36 | +chmod 0700 $TMPFILEDIR | ||
37 | TMPFILE=$TMPFILEDIR/w | ||
38 | |||
39 | # make sure TMPFILEDIR is deleted if program is killed or terminates | ||
40 | diff -Naur man-1.6e.orig/src/man.c man-1.6e/src/man.c | ||
41 | --- man-1.6e.orig/src/man.c 2006-05-01 17:34:22.000000000 -0300 | ||
42 | +++ man-1.6e/src/man.c 2007-05-18 10:11:33.000000000 -0300 | ||
43 | @@ -1234,7 +1234,6 @@ | ||
44 | #endif | ||
45 | |||
46 | |||
47 | -#if 0 | ||
48 | { | ||
49 | /* There are no known cases of buffer overflow caused by | ||
50 | excessively long environment variables. In case you find one, | ||
51 | @@ -1257,7 +1256,6 @@ | ||
52 | MAN_ICONV_PATH, MAN_ICONV_OPT, MAN_ICONV_INPUT_CHARSET, | ||
53 | MAN_ICONV_OUTPUT_CHARSET, NLSPATH, PATH */ | ||
54 | } | ||
55 | -#endif | ||
56 | |||
57 | |||
58 | #ifndef __FreeBSD__ | ||