diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-01-05 11:58:47 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-01-05 11:58:47 -0200 |
commit | b79dc8d0fec37d774d6c7161c96b2cd543c155de (patch) | |
tree | adbed3ace2903d2955fc5011c4afde89dc9ae0be | |
parent | 890461fe12cf8dacc6bc9b2747cbe87379565962 (diff) | |
download | glibc-b79dc8d0fec37d774d6c7161c96b2cd543c155de.tar.gz glibc-b79dc8d0fec37d774d6c7161c96b2cd543c155de.tar.xz glibc-b79dc8d0fec37d774d6c7161c96b2cd543c155de.zip |
posix: Fix tst-spawn.c issue from commit 805334b26c
Checked on powerpc64le-linux-gnu. * posix/tst-spawn.c (do_test): Extend spargv to new required size and fix typo.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | posix/tst-spawn.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index ca5d37337f..f9854eda1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org> + + * posix/tst-spawn.c (do_test): Extend spargv to new required size and + fix typo. + 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com> [BZ #19444] diff --git a/posix/tst-spawn.c b/posix/tst-spawn.c index b45e0d885e..eea5addbf3 100644 --- a/posix/tst-spawn.c +++ b/posix/tst-spawn.c @@ -154,7 +154,7 @@ do_test (int argc, char *argv[]) char fd4name[18]; char fd5name[18]; char *name3_copy; - char *spargv[12]; + char *spargv[13]; int i; /* We must have @@ -169,7 +169,7 @@ do_test (int argc, char *argv[]) + the newly opened file descriptor + the duped second descriptor + the name of the closed descriptor - + the duped fourth dile descriptor which O_CLOEXEC should be + + the duped fourth file descriptor which O_CLOEXEC should be remove by adddup2. */ if (argc != (restart ? 7 : 2) && argc != (restart ? 7 : 5)) |