diff options
author | Denys Vlasenko | 2011-11-22 17:19:26 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-11-22 17:19:26 +0100 |
commit | d2277e262ff7dd2dd946ea16b93462f3dcdf0447 (patch) | |
tree | 985e045011ef9eb5b0136ce36c321cce015e56d7 /archival/cpio.c | |
parent | fcb9e07eca65b98093dd0b2b80451934a8719914 (diff) | |
download | busybox-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.zip busybox-d2277e262ff7dd2dd946ea16b93462f3dcdf0447.tar.gz |
nommu: fix cases where we mangle argv[0][0]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/cpio.c')
-rw-r--r-- | archival/cpio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index c2a5b8a..98cc18f 100644 --- a/archival/cpio.c +++ b/archival/cpio.c @@ -384,6 +384,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv) goto dump; } /* parent */ + USE_FOR_NOMMU(argv[-optind][0] &= 0x7f); /* undo fork_or_rexec() damage */ xchdir(*argv++); close(pp.wr); xmove_fd(pp.rd, STDIN_FILENO); |