aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/util.c')
-rw-r--r--e2fsprogs/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c
index aaee50ae6..e68c457e7 100644
--- a/e2fsprogs/util.c
+++ b/e2fsprogs/util.c
@@ -33,12 +33,12 @@ void proceed_question(void)
33void check_plausibility(const char *device, int force) 33void check_plausibility(const char *device, int force)
34{ 34{
35 int val; 35 int val;
36 STRUCT_STAT s; 36 struct stat s;
37 val = STAT(device, &s); 37 val = stat(device, &s);
38 if (force) 38 if (force)
39 return; 39 return;
40 if(val == -1) 40 if(val == -1)
41 bb_perror_msg_and_die("Could not stat %s", device); 41 bb_perror_msg_and_die("cannot stat %s", device);
42 if (!S_ISBLK(s.st_mode)) { 42 if (!S_ISBLK(s.st_mode)) {
43 printf("%s is not a block special device.\n", device); 43 printf("%s is not a block special device.\n", device);
44 proceed_question(); 44 proceed_question();