--- man-1.5m2/src/man.c.vns 2003-09-05 13:49:13 +0400 +++ man-1.5m2/src/man.c 2004-05-26 15:29:28 +0400 @@ -332,13 +332,21 @@ /* * Some people have compressed man pages, but uncompressed * .so files - we could glob for all possible extensions, - * for now: only try .gz + * for now: only try .gz and .bz2 */ - else if (fp == NULL && get_expander(".gz") && - strlen(name)+strlen(".gz") < BUFSIZE) { - strcat(name, ".gz"); + if (fp == NULL) { + unsigned offset = strlen(name); + if (get_expander(".gz") && + offset+sizeof(".gz") <= BUFSIZE) { + strcpy(name + offset, ".gz"); + fp = fopen (name, "r"); + } + if (fp == NULL && get_expander(".bz2") && + offset+sizeof(".bz2") <= BUFSIZE) { + strcpy(name + offset, ".bz2"); fp = fopen (name, "r"); } + } if (fp == NULL) { perror("fopen"); --- man-1.5m2/configure.vns 2004-05-26 15:29:28 +0400 +++ man-1.5m2/configure 2004-05-26 15:38:53 +0400 @@ -991,7 +991,7 @@ then DO_COMPRESSION=true compress= - for i in bzip2 gzip bzip tzip pack compress freeze yabba + for i in bzip2 do eval F$i=missing for j in $DEFPATH