diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-06-21 08:33:50 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-07-04 12:12:27 +0200 |
commit | a1b52e2b53f20e39894e5e80e7fc08c1950d9224 (patch) | |
tree | 1942a65d8828a7ed4227b4b8044ed461bc4f652d /tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch | |
parent | 39a229ed4b76434df5178cd73401918dec275653 (diff) | |
download | mtk-20170518-a1b52e2b53f20e39894e5e80e7fc08c1950d9224.zip mtk-20170518-a1b52e2b53f20e39894e5e80e7fc08c1950d9224.tar.gz mtk-20170518-a1b52e2b53f20e39894e5e80e7fc08c1950d9224.tar.bz2 |
dosfstools: update to v4.0
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch')
-rw-r--r-- | tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch b/tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch deleted file mode 100644 index b12c3b2..0000000 --- a/tools/dosfstools/patches/0002-Fix-indentation-of-fix-power-loss-damage-commit.patch +++ /dev/null @@ -1,100 +0,0 @@ -From 45aeed0c658cc86e93ae3ae101404e12bec6e102 Mon Sep 17 00:00:00 2001 -From: Andreas Bombe <aeb@debian.org> -Date: Sun, 16 Nov 2014 19:49:22 +0100 -Subject: [PATCH 02/14] Fix indentation of "fix power loss damage" commit - -I fixed the (sometimes misleading) indentation of the code introduced in -commit 6893c45 to be in line with the reset of the code and also removed -the /* PATCH ED+DL */ comments which are quite meaningless to the wider -world. - -Signed-off-by: Andreas Bombe <aeb@debian.org> ---- - src/check.c | 57 ++++++++++++++++++++++++--------------------------------- - 1 file changed, 24 insertions(+), 33 deletions(-) - -diff --git a/src/check.c b/src/check.c -index e8aaf92..daa6d69 100644 ---- a/src/check.c -+++ b/src/check.c -@@ -273,11 +273,10 @@ static int bad_name(DOS_FILE * file) - strncmp((const char *)name, "WP ROOT SF", 11) == 0) - return 0; - -- /* PATCH ED+DL */ -- /* check if we have neither a long filename nor a short name */ -- if ((file->lfn == NULL) && (file->dir_ent.lcase & FAT_NO_83NAME)) { -- return 1; -- } -+ /* check if we have neither a long filename nor a short name */ -+ if ((file->lfn == NULL) && (file->dir_ent.lcase & FAT_NO_83NAME)) { -+ return 1; -+ } - - /* don't complain about the dummy 11 bytes used by patched Linux - kernels */ -@@ -401,20 +400,16 @@ static void auto_rename(DOS_FILE * file) - (const char *)file->dir_ent.name, MSDOS_NAME)) - break; - if (!walk) { -- /* PATCH ED+DL */ -- if(file->dir_ent.lcase & FAT_NO_83NAME) -- { -- /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not -- present */ -- file->dir_ent.lcase &= ~FAT_NO_83NAME; -- /* reset the attributes */ -- file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); /* only keep the DIR and VOLUME attributes */ -- fs_write(file->offset, MSDOS_NAME+2, file->dir_ent.name); -- } -- else -- { -- fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); -- } -+ if (file->dir_ent.lcase & FAT_NO_83NAME) { -+ /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not -+ present */ -+ file->dir_ent.lcase &= ~FAT_NO_83NAME; -+ /* reset the attributes, only keep DIR and VOLUME */ -+ file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); -+ fs_write(file->offset, MSDOS_NAME + 2, file->dir_ent.name); -+ } else { -+ fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); -+ } - if (file->lfn) - lfn_fix_checksum(file->lfn_offset, file->offset, - (const char *)file->dir_ent.name); -@@ -448,20 +443,16 @@ static void rename_file(DOS_FILE * file) - walk[1] = 0; - for (walk = name; *walk == ' ' || *walk == '\t'; walk++) ; - if (file_cvt(walk, file->dir_ent.name)) { -- /* PATCH ED+DL */ -- if(file->dir_ent.lcase & FAT_NO_83NAME) -- { -- /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not -- present */ -- file->dir_ent.lcase &= ~FAT_NO_83NAME; -- /* reset the attributes */ -- file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); /* only keep the DIR and VOLUME attributes */ -- fs_write(file->offset, MSDOS_NAME+2, file->dir_ent.name); -- } -- else -- { -- fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); -- } -+ if (file->dir_ent.lcase & FAT_NO_83NAME) { -+ /* as we only assign a new 8.3 filename, reset flag that 8.3 name is not -+ present */ -+ file->dir_ent.lcase &= ~FAT_NO_83NAME; -+ /* reset the attributes, only keep DIR and VOLUME */ -+ file->dir_ent.attr &= ~(ATTR_DIR | ATTR_VOLUME); -+ fs_write(file->offset, MSDOS_NAME + 2, file->dir_ent.name); -+ } else { -+ fs_write(file->offset, MSDOS_NAME, file->dir_ent.name); -+ } - if (file->lfn) - lfn_fix_checksum(file->lfn_offset, file->offset, - (const char *)file->dir_ent.name); --- -1.9.1 - |