diff options
author | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
commit | fecf687cc358883de2da21de33346f0df204c80b (patch) | |
tree | d22c606157926fb659374ae68d55e3a874bacf25 /miscutils/man.c | |
parent | b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa (diff) | |
parent | 6d463de46b418e6c4c8d1397033608f78b33ab21 (diff) | |
download | busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.gz busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.bz2 busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.zip |
Merge branch 'busybox' into merge
Conflicts:
include/libbb.h
shell/ash.c
Diffstat (limited to 'miscutils/man.c')
-rw-r--r-- | miscutils/man.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/miscutils/man.c b/miscutils/man.c index 236fdcebd..b8b15b83b 100644 --- a/miscutils/man.c +++ b/miscutils/man.c | |||
@@ -129,27 +129,21 @@ static int show_manpage(const char *pager, char *man_filename, int man, int leve | |||
129 | #endif | 129 | #endif |
130 | #if ENABLE_FEATURE_SEAMLESS_XZ | 130 | #if ENABLE_FEATURE_SEAMLESS_XZ |
131 | strcpy(ext, "xz"); | 131 | strcpy(ext, "xz"); |
132 | if (run_pipe(pager, man_filename, man, level)) | 132 | if (run_pipe(pager, filename_with_zext, man, level)) |
133 | return 1; | 133 | return 1; |
134 | #endif | 134 | #endif |
135 | #if ENABLE_FEATURE_SEAMLESS_BZ2 | 135 | #if ENABLE_FEATURE_SEAMLESS_BZ2 |
136 | strcpy(ext, "bz2"); | 136 | strcpy(ext, "bz2"); |
137 | if (run_pipe(pager, man_filename, man, level)) | 137 | if (run_pipe(pager, filename_with_zext, man, level)) |
138 | return 1; | 138 | return 1; |
139 | #endif | 139 | #endif |
140 | #if ENABLE_FEATURE_SEAMLESS_GZ | 140 | #if ENABLE_FEATURE_SEAMLESS_GZ |
141 | strcpy(ext, "gz"); | 141 | strcpy(ext, "gz"); |
142 | if (run_pipe(pager, man_filename, man, level)) | 142 | if (run_pipe(pager, filename_with_zext, man, level)) |
143 | return 1; | 143 | return 1; |
144 | #endif | 144 | #endif |
145 | 145 | ||
146 | #if SEAMLESS_COMPRESSION | 146 | return run_pipe(pager, man_filename, man, level); |
147 | ext[-1] = '\0'; | ||
148 | #endif | ||
149 | if (run_pipe(pager, man_filename, man, level)) | ||
150 | return 1; | ||
151 | |||
152 | return 0; | ||
153 | } | 147 | } |
154 | 148 | ||
155 | int man_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 149 | int man_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |