randomconfig fixes
This commit is contained in:
parent
0e7f28d674
commit
ec73d30322
@ -338,12 +338,16 @@ int FAST_FUNC open_zipped(const char *fname)
|
|||||||
/* .gz and .bz2 both have 2-byte signature, and their
|
/* .gz and .bz2 both have 2-byte signature, and their
|
||||||
* unpack_XXX_stream want this header skipped. */
|
* unpack_XXX_stream want this header skipped. */
|
||||||
xread(fd, &magic, 2);
|
xread(fd, &magic, 2);
|
||||||
|
#if ENABLE_FEATURE_SEAMLESS_GZ
|
||||||
#if BB_MMU
|
#if BB_MMU
|
||||||
xformer = unpack_gz_stream;
|
xformer = unpack_gz_stream;
|
||||||
#else
|
#else
|
||||||
xformer_prog = "gunzip";
|
xformer_prog = "gunzip";
|
||||||
#endif
|
#endif
|
||||||
if (magic[0] != 0x1f || magic[1] != 0x8b) {
|
#endif
|
||||||
|
if (!ENABLE_FEATURE_SEAMLESS_GZ
|
||||||
|
|| magic[0] != 0x1f || magic[1] != 0x8b
|
||||||
|
) {
|
||||||
if (!ENABLE_FEATURE_SEAMLESS_BZ2
|
if (!ENABLE_FEATURE_SEAMLESS_BZ2
|
||||||
|| magic[0] != 'B' || magic[1] != 'Z'
|
|| magic[0] != 'B' || magic[1] != 'Z'
|
||||||
) {
|
) {
|
||||||
|
@ -174,9 +174,9 @@ int chpst_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
|||||||
int chpst_main(int argc UNUSED_PARAM, char **argv)
|
int chpst_main(int argc UNUSED_PARAM, char **argv)
|
||||||
{
|
{
|
||||||
struct bb_uidgid_t ugid;
|
struct bb_uidgid_t ugid;
|
||||||
char *set_user;
|
char *set_user = set_user; /* for compiler */
|
||||||
char *env_user;
|
char *env_user = env_user;
|
||||||
char *env_dir;
|
char *env_dir = env_dir;
|
||||||
char *root;
|
char *root;
|
||||||
char *nicestr;
|
char *nicestr;
|
||||||
unsigned limita;
|
unsigned limita;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user