summaryrefslogtreecommitdiffstats
path: root/exfat/fsck/main.c
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2014-11-01 14:34:57 +0100
committerDees Troy <dees_troy@teamw.in>2014-11-04 15:37:42 +0100
commitc40c1c52d68049434b1379c3a6d8652a1363bb07 (patch)
tree08321140321dd893136fa2fb30b896ce2027cb24 /exfat/fsck/main.c
parentadd "done" after "Updating partition details..." (diff)
downloadandroid_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar.gz
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar.bz2
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar.lz
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar.xz
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.tar.zst
android_bootable_recovery-c40c1c52d68049434b1379c3a6d8652a1363bb07.zip
Diffstat (limited to 'exfat/fsck/main.c')
-rw-r--r--exfat/fsck/main.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/exfat/fsck/main.c b/exfat/fsck/main.c
index 67920aa61..91f754594 100644
--- a/exfat/fsck/main.c
+++ b/exfat/fsck/main.c
@@ -3,7 +3,7 @@
exFAT file system checker.
Free exFAT implementation.
- Copyright (C) 2011-2014 Andrew Nayenko
+ Copyright (C) 2011-2013 Andrew Nayenko
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ static int nodeck(struct exfat* ef, struct exfat_node* node)
char name[UTF8_BYTES(EXFAT_NAME_MAX) + 1];
exfat_get_name(node, name, sizeof(name) - 1);
- exfat_error("file '%s' has invalid cluster 0x%x", name, c);
+ exfat_error("file `%s' has invalid cluster 0x%x", name, c);
rc = 1;
break;
}
@@ -54,7 +54,7 @@ static int nodeck(struct exfat* ef, struct exfat_node* node)
char name[UTF8_BYTES(EXFAT_NAME_MAX) + 1];
exfat_get_name(node, name, sizeof(name) - 1);
- exfat_error("cluster 0x%x of file '%s' is not allocated", c, name);
+ exfat_error("cluster 0x%x of file `%s' is not allocated", c, name);
rc = 1;
}
c = exfat_next_cluster(ef, node, c);
@@ -72,20 +72,16 @@ static void dirck(struct exfat* ef, const char* path)
char* entry_path;
if (exfat_lookup(ef, &parent, path) != 0)
- exfat_bug("directory '%s' is not found", path);
+ exfat_bug("directory `%s' is not found", path);
if (!(parent->flags & EXFAT_ATTRIB_DIR))
- exfat_bug("'%s' is not a directory (0x%x)", path, parent->flags);
+ exfat_bug("`%s' is not a directory (0x%x)", path, parent->flags);
if (nodeck(ef, parent) != 0)
- {
- exfat_put_node(ef, parent);
return;
- }
path_length = strlen(path);
entry_path = malloc(path_length + 1 + UTF8_BYTES(EXFAT_NAME_MAX) + 1);
if (entry_path == NULL)
{
- exfat_put_node(ef, parent);
exfat_error("out of memory");
return;
}
@@ -97,6 +93,7 @@ static void dirck(struct exfat* ef, const char* path)
{
free(entry_path);
exfat_put_node(ef, parent);
+ exfat_error("failed to open directory `%s'", path);
return;
}
while ((node = exfat_readdir(ef, &it)))
@@ -149,7 +146,7 @@ int main(int argc, char* argv[])
switch (opt)
{
case 'V':
- puts("Copyright (C) 2011-2014 Andrew Nayenko");
+ puts("Copyright (C) 2011-2013 Andrew Nayenko");
return 0;
default:
usage(argv[0]);