summaryrefslogtreecommitdiff
path: root/misc-utils/ftl_format.c
Commit message (Collapse)AuthorAgeFilesLines
* mtd-utils: Fix various TOCTOU issuesDavid Oberhollenzer2020-02-091-6/+8
| | | | | | | This patch restructures various code parts that follow the pattern of "stat(x, &sb) ... makes_sense(&sb) ... open(x)". Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
* ftl_format: don't leak temporary buffersDavid Oberhollenzer2019-11-101-0/+4
| | | | Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
* ftl_format: Use return directly to leave main functionDaniel Wagner2017-06-141-2/+1
| | | | | | | | We can use return with the exit code instead of the sliglty odd exit, return pattern. Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
* Unify version string printingDavid Oberhollenzer2016-11-171-4/+18
| | | | | | | | | | | | | | | | When a program does sophisticated enough command line processing (i.e. getopt), make sure it responds to -V and --version. When a program prints a version string, make sure it uses the common_print_version macro to print out its name, that it is part of mtd-utils and the mtd-utils version from the build system in a fashion similar to common program packages like the GNU coreutils. When a program responds to -V/--version or -h/--help, make sure it reports success exit status. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> Signed-off-by: Richard Weinberger <richard@nod.at>
* mtd-utils: Restructure the mtd-utils source.Dongsheng Yang2015-11-111-0/+324
* There is no code modification in this commit, only moving * the files to proper place. The user tools looks a little messy as we place almost the all tools in the root directory of mtd-utils. To make it more clear, I propose to introduce the following structure for our source code. mtd-utils/ |-- lib |-- include |-- misc-utils |-- jffsX-utils |-- nand-utils |-- nor-utils |-- ubi-utils |-- ubifs-utils `-- tests Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>