From 5625415085e68ac5e150f54e685417c866620d76 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 7 Oct 2006 16:24:46 +0000 Subject: dd: make it recognize not only 'k' but 'K' too; make it (partially) CONFIG_LFS-aware --- e2fsprogs/util.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'e2fsprogs/util.c') diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c index efb128f59..aaee50ae6 100644 --- a/e2fsprogs/util.c +++ b/e2fsprogs/util.c @@ -33,13 +33,8 @@ void proceed_question(void) void check_plausibility(const char *device, int force) { int val; -#ifdef CONFIG_LFS - struct stat64 s; - val = stat64(device, &s); -#else - struct stat s; - val = stat(device, &s); -#endif + STRUCT_STAT s; + val = STAT(device, &s); if (force) return; if(val == -1) -- cgit v1.2.3