ANDROID: sdcardfs: Truncate packages_gid.list on overflow
authorDaniel Rosenberg <drosen@google.com>
Fri, 8 Jul 2016 21:15:14 +0000 (14:15 -0700)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:00 +0000 (19:40 -0800)
commit6f499f0ca341ec71dd7eb1858aed0951563f0a82
tree5ee4bcfca49b1a85d32147608eaee4f9fc4dedbc
parent6061d783aec585a0bfc198f3884cc956e9e2aca0
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