]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: use 'stat(2)' instead of 'lstat(2)'
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Mon, 25 Aug 2008 09:21:48 +0000 (11:21 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Aug 2008 11:38:02 +0000 (14:38 +0300)
commitd5184fdeff3bb18e4d5c5fe00a91bd473e4ed26f
tree37fdb342cfcc81da0ec03347efaef0fa1b51e3de
parentc67a5c357443321dd252dceddb8e5304430e47c5
ubi-utils: use 'stat(2)' instead of 'lstat(2)'

The UBI tools refuse to work with symlinks like
'/dev/ubi/bootloader -> ../ubi0_2' because they use 'lstat(2)' and get
information about the symlink but not about the device.  This is
unwanted and fixed by this patch.

This patch renames 'struct stat stat' variables to 'st' to avoid
compilation errors.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/new-utils/src/libubi.c
ubi-utils/src/libubi.c
ubi-utils/src/nand2bin.c