sdcardfs: Truncate packages_gid.list on overflow
authorDaniel Rosenberg <drosen@google.com>
Fri, 8 Jul 2016 21:15:14 +0000 (14:15 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 11 Jul 2016 07:14:27 +0000 (12:44 +0530)
commit841eac1df7144c7ecd70ad8ea5942f12a260e845
tree2e86e33f00ceeaa4bb6f1c541f8dfd0df6ab59f5
parent3f01d94b5033a2fbd76e92cb48ae5db4b0e35b7d
sdcardfs: Truncate packages_gid.list on overflow

packages_gid.list was improperly returning the wrong
count. Use scnprintf instead, and inform the user that
the list was truncated if it is.

Bug: 30013843
Change-Id: Ida2b2ef7cd86dd87300bfb4c2cdb6bfe2ee1650d
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/packagelist.c