ANDROID: sdcardfs: Truncate packages_gid.list on overflow
authorDaniel Rosenberg <drosen@google.com>
Fri, 8 Jul 2016 21:15:14 +0000 (14:15 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 27 Jan 2017 21:55:13 +0000 (13:55 -0800)
commit0de3b4c1a9f049e4d8ec9f39a6c5e44b623b24ae
treebefcdbe34d9900d3fc6e3e81eadfe83649ad72d9
parent60d4c172c5cde891d3001cb9b7e1a0caeef96988
ANDROID: 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