diff options
author | Florian Weimer <fweimer@redhat.com> | 2014-06-11 23:12:52 +0200 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-01-16 07:47:59 -0500 |
commit | eece504424b59a1d8de7b4da9c64e24acaa6fbe0 (patch) | |
tree | 1be880e02159b1a615881d3205bc81ce46e7890b /posix/spawn_int.h | |
parent | dcf0cce30d91100005e9aeb002096236325648fb (diff) | |
download | glibc-eece504424b59a1d8de7b4da9c64e24acaa6fbe0.zip glibc-eece504424b59a1d8de7b4da9c64e24acaa6fbe0.tar.gz glibc-eece504424b59a1d8de7b4da9c64e24acaa6fbe0.tar.bz2 |
posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)
POSIX requires that we make a copy, so we allocate a new string
and free it in posix_spawn_file_actions_destroy.
Reported by David Reid, Alex Gaynor, and Glyph Lefkowitz. This bug
may have security implications.
Diffstat (limited to 'posix/spawn_int.h')
-rw-r--r-- | posix/spawn_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/spawn_int.h b/posix/spawn_int.h index 5609e58..861e3b4 100644 --- a/posix/spawn_int.h +++ b/posix/spawn_int.h @@ -22,7 +22,7 @@ struct __spawn_action struct { int fd; - const char *path; + char *path; int oflag; mode_t mode; } open_action; |