Handle readlink() failure in genCpioListAndHeader() correctly
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 06:02:38 +0000 (09:02 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 06:06:53 +0000 (09:06 +0300)
commitc499a0b912629eeeabc3554d3e3a95c088e96422
tree875ead1e28da6d19ebb1d29aea56a6fce58492c3
parenta925a16f5b4206e8bef4b5f5e3742bf1d1f75809
Handle readlink() failure in genCpioListAndHeader() correctly
- It might be a rare condition but it /can/ happen, and previously
  that would cause '\0' written out of bounds (at negative array offset).
  Also leave room for the terminating '\0' at the end of buffer when
  calling readlink(), previously a link exactly the size of buffer
  would've been silently truncated.
build/files.c