sdcardfs: Truncate packages_gid.list on overflow
authorDaniel Rosenberg <drosen@google.com>
Fri, 8 Jul 2016 21:15:14 +0000 (14:15 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:15 +0000 (18:03 +0200)
commitf7400832bf6e3dc1c3a44f02a9f9fd434078210e
treeff6eb6de4c31b806303dbe001d58cc444cfce277
parent3e3367258b5ccd32bf3c5b1ccf974b2e38c01b66
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