summaryrefslogtreecommitdiffstats
path: root/cpio
Commit message (Collapse)AuthorAgeFilesLines
* Possible null pointer miss on reallocMikhail Lappo2017-03-231-0/+2
| | | | | | | | | Realloc can return null pointer which will cause a crash then. Patch introduces check for controlled 'die' in case memory is not available Change-Id: I279028339b1fe756d8a511834e164e59d4cab110
* mkbootfs: Fix the default st_mode for root directory.Tao Bao2016-10-071-3/+5
| | | | | | | | | | | | | | | | CL in [1] fixed the wrong mode for the root directory from 0644 to 0755. However it only handles the path by calling mkbootfs with canned fs_config (i.e. with -f flag). When calling mkbootfs without -f flag, it still treats the root directory as a file. This renders the generated boot/recovery images w/ and w/o -f being different, and leads to the incorrect checksums in /system/bin/install-recovery.sh. [1] commit aa8f2f65a030f71506277e2a8d64d83a099e9feb. Bug: 31988535 Test: `make dist` and verify the checksums in /system/bin/install-recovery.sh. Change-Id: Ib50fadb23367da0b46944ae0579093da21412593
* fs_config: replace getenv('OUT') by new fs_config parameterThierry Strudel2015-07-091-1/+9
| | | | | | | | | | | | | | Using a getenv('OUT') in such a deep down function is a wrong design choice. Replacing with explicit parameter that may be NULL in case device specific files can be accessed from /. Since TARGET_COPY_OUT_SYSTEM may be defined to something different than system we also ensure that we use a path relative to TARGET_OUT to compute path to fs_config_* files. Bug: 21989305 Bug: 22048934 Change-Id: Id91bc183b29beac7379d1117ad83bd3346e6897b Signed-off-by: Thierry Strudel <tstrudel@google.com>
* makebootfs: use libcutils shared librariesMark Salyzyn2015-04-151-1/+1
| | | | | | | | | | | - move to libcutils.so as shared now that they are in DISTTOOL. - liblog dependency is part of libcutils, and need not be called out explicitly now. liblog is in DISTTOOL. - libcutils fs_config has the right to add Android logging Bug: 19908228 Change-Id: I915503f64389b59075620578601f98fc0756bd7a
* mkbootfs: move fs_config to libcutilsMark Salyzyn2015-04-021-0/+2
| | | | | | Bug: 19908228 Change-Id: Ic843b32f575825dc89cd9fa15dc0619bc397ce82
* cpio: Turn on -WerrorMark Salyzyn2014-05-232-2/+5
| | | | | | | - Solve st_mode is uint16_t on MAC - Turn on -Werror Change-Id: I67b62424245545099ed283c56dae544153b85425
* Fix a bunch of small system/core bugs.Elliott Hughes2013-10-291-0/+2
| | | | | | | | | | | | | | | | | | | | | Missing frees in: adb/file_sync_client.c fastboot/fastboot.c libsparse/output_file.c Missing closedirs in: adb/file_sync_service.c cpio/mkbootfs.c libcutils/dir_hash.c Potential buffer overrun in: gpttool/gpttool.c Incorrect NULL check in: libsparse/backed_block.c Bug: https://code.google.com/p/android/issues/detail?id=61564 Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
* Add support for filesystem capabilities.Nick Kralevich2013-02-201-1/+2
| | | | | | | | Modify android_filesystem_config.h and add a capabilities field. This field can be used to add filesystem capabilities to a particular file. Change-Id: If8953a322457ea7275aa6df75660b714e6dc678a
* fix mkbootfs for systems that lack PATH_MAXDoug Zongker2012-05-041-0/+4
| | | | Change-Id: I1b841bde6de6c8e762c5fba35e6d6d701f18bb05
* add -f option to mkbootfs to load file perms from fileDoug Zongker2012-05-041-2/+88
| | | | | | | | | | | mkbootfs uses the compiled in fs_config() function to set the mode (but not the uid or gid) of the files in the filesystem it is building. Give it an optional "-f filename" flag to allow loading the list of file permissions from a file, so we can continue to accurately recreate old filesystems even when the current fs_config() has changed. Bug: 6435132 Change-Id: Ife6b25e989301e78e22c34a544738436c96caf6f
* dist for dist_filesYing Wang2010-12-091-1/+1
| | | | Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-0/+274
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-274/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-16/+57
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-212-0/+233