dd: make it recognize not only 'k' but 'K' too;

make it (partially) CONFIG_LFS-aware
This commit is contained in:
Denis Vlasenko
2006-10-07 16:24:46 +00:00
parent 890ac9deb2
commit 5625415085
7 changed files with 46 additions and 63 deletions

View File

@@ -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)