ntfs-3g: Update to version 2021.8.22

Message ID 20220228211042.2803296-1-adolf.belka@ipfire.org
State Accepted
Commit b09ef37023cf1d6567110903777b4f9df3508999
Headers
Series ntfs-3g: Update to version 2021.8.22 |

Commit Message

Adolf Belka Feb. 28, 2022, 9:10 p.m. UTC
  - Update from 2017.3.23 to 2021.8.22
- Update of rootfile
- Added link to mkfs.ntfs in lfs to provide the binary in sbin as the new package places it
   in usr/sbin
- Ran find-dependencies and no problems flagged up.
- Changelog
	Stable Version 2021.8.22 (August 30, 2021)
	    Fixed compile error when building with libfuse < 2.8.0
	    Fixed obsolete macros in configure.ac
	    Signalled support of UTIME_OMIT to external libfuse2
	    Fixed an improper macro usage in ntfscp.c
	    Updated the repository change in the README
	    Fixed vulnerability threats caused by maliciously tampered NTFS partitions
	Stable Version 2017.3.23AR.6 (February 1, 2021)
	    Used kernel cacheing on read-only mounts or with lowntfs-3g
	    Avoided information leak when processing garbled compressed data
	    Defined option posix_nlink to compute a Posix compliant st_nlink
	    Recovered space when an index root is shortened
	    Replaced ENODATA with ENOATTR in xattrs functions for macOS
	    Added support for 'position' argument in macOS xattr functions
	    Changed default xattr access method to 'openxattr' for macOS builds
	    Allowed redefining the target location of the ntfsprogs tools
	    Fixed updating the allocated size when attribute lies in an extent
	    Enabled actions on directories in reparse plugins
	    Inserted the reparse tag in the bad reparse symlink
	    Supported use of WSL special files
	    Dropped rejecting having both EA and reparse data
	    Enabled Creating special files the same way as WSL
	    Checked the locations of MFT and MFTMirr at startup
	Stable Version 2017.3.23AR.5 (April 1, 2020)
	    Processed the request argument of ioctl() as unsigned
	    Accepted alternative recording of cluster size
	    Fixed a poorly sized string in ntfsinfo
	    Fixed ntfsfallocate on a void file
	    Decoded execlink reparse points
	    Fixed object type returned in readdir() for reparse points
	    Exported the translations of Windows paths to current ones
	Stable Version 2017.3.23AR.4 (March 1, 2019)
	    Fixed reporting an error when failed to build the mountpoint
	    Reverted accessing reparse directory through internal plugins
	    Cleaned object ids beyond the updated part
	    Fixed reacting to missing plugin
	    Returned a low level error when an ioctl fails
	    Truncated SSD trimming zones to granularity supported by the device
	Stable Version 2017.3.23AR.3 (September 1, 2018)
	    Made sure log file buffers are properly aligned
	    Made reparse directories visible through internal plugins
	    Added an option to ntfscp to copy the modification time
	    Renamed undeleted files to avoid overwriting existing ones
	    Extended the allowed cluster size to 2MB
	    Allocated full clusters for reading and rescuing in ntfsclone
	    Prevented locally defined headers from interfering with ntfs-3g ones
	    Attempted mounting read-only after failed permission to read-write
	    Fixed collecting the label argument in mkntfs
	Stable Version 2017.3.23AR.2 (March 1, 2018)
	    Made sure log file buffers are properly aligned
	    Checked log file blocks more recent than temporary ones
	    Processed redo log actions associated to undoing a CompensationlogRecord
	    Allowed setting a file object id without defining its birth ids
	    Documented read-only mount when Windows is hibernated
	    Stopped checking matches of MFTMirr against MFT at record 16
	    Filtered out reparse flags for selecting plugins
	    Delayed updating the MFT runlist when resizing in read-only mode
	    Double-checked whether record 15 is an extent of MFT
	    Checked whether the device to mount was forced read-only
	Stable Version 2017.3.23AR.1 (October 1, 2017)
	    Bypassed cluster allocation errors using --ignore-fs-check in ntfsclone
	    Upgraded ntfsrecover to support log files for Windows 10
	    Fixed the computation of highest_vcn when applying a runlist fixup
	    Fixed updating the vcn of subtree in ntfsrecover
	    Relaxed checks on security descriptors
	    Enabled directory operations in plugins
	    Decoded more reparse tags in ntfsinfo
	    Logged falling back to mounting read-only
	    Fixed compiling on MacOSX (Erik Larsson)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/ntfs-3g |  6 +++---
 lfs/ntfs-3g                     | 12 ++++++++----
 2 files changed, 11 insertions(+), 7 deletions(-)
  

Comments

Peter Müller March 3, 2022, 8:50 a.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> - Update from 2017.3.23 to 2021.8.22
> - Update of rootfile
> - Added link to mkfs.ntfs in lfs to provide the binary in sbin as the new package places it
>    in usr/sbin
> - Ran find-dependencies and no problems flagged up.
> - Changelog
> 	Stable Version 2021.8.22 (August 30, 2021)
> 	    Fixed compile error when building with libfuse < 2.8.0
> 	    Fixed obsolete macros in configure.ac
> 	    Signalled support of UTIME_OMIT to external libfuse2
> 	    Fixed an improper macro usage in ntfscp.c
> 	    Updated the repository change in the README
> 	    Fixed vulnerability threats caused by maliciously tampered NTFS partitions
> 	Stable Version 2017.3.23AR.6 (February 1, 2021)
> 	    Used kernel cacheing on read-only mounts or with lowntfs-3g
> 	    Avoided information leak when processing garbled compressed data
> 	    Defined option posix_nlink to compute a Posix compliant st_nlink
> 	    Recovered space when an index root is shortened
> 	    Replaced ENODATA with ENOATTR in xattrs functions for macOS
> 	    Added support for 'position' argument in macOS xattr functions
> 	    Changed default xattr access method to 'openxattr' for macOS builds
> 	    Allowed redefining the target location of the ntfsprogs tools
> 	    Fixed updating the allocated size when attribute lies in an extent
> 	    Enabled actions on directories in reparse plugins
> 	    Inserted the reparse tag in the bad reparse symlink
> 	    Supported use of WSL special files
> 	    Dropped rejecting having both EA and reparse data
> 	    Enabled Creating special files the same way as WSL
> 	    Checked the locations of MFT and MFTMirr at startup
> 	Stable Version 2017.3.23AR.5 (April 1, 2020)
> 	    Processed the request argument of ioctl() as unsigned
> 	    Accepted alternative recording of cluster size
> 	    Fixed a poorly sized string in ntfsinfo
> 	    Fixed ntfsfallocate on a void file
> 	    Decoded execlink reparse points
> 	    Fixed object type returned in readdir() for reparse points
> 	    Exported the translations of Windows paths to current ones
> 	Stable Version 2017.3.23AR.4 (March 1, 2019)
> 	    Fixed reporting an error when failed to build the mountpoint
> 	    Reverted accessing reparse directory through internal plugins
> 	    Cleaned object ids beyond the updated part
> 	    Fixed reacting to missing plugin
> 	    Returned a low level error when an ioctl fails
> 	    Truncated SSD trimming zones to granularity supported by the device
> 	Stable Version 2017.3.23AR.3 (September 1, 2018)
> 	    Made sure log file buffers are properly aligned
> 	    Made reparse directories visible through internal plugins
> 	    Added an option to ntfscp to copy the modification time
> 	    Renamed undeleted files to avoid overwriting existing ones
> 	    Extended the allowed cluster size to 2MB
> 	    Allocated full clusters for reading and rescuing in ntfsclone
> 	    Prevented locally defined headers from interfering with ntfs-3g ones
> 	    Attempted mounting read-only after failed permission to read-write
> 	    Fixed collecting the label argument in mkntfs
> 	Stable Version 2017.3.23AR.2 (March 1, 2018)
> 	    Made sure log file buffers are properly aligned
> 	    Checked log file blocks more recent than temporary ones
> 	    Processed redo log actions associated to undoing a CompensationlogRecord
> 	    Allowed setting a file object id without defining its birth ids
> 	    Documented read-only mount when Windows is hibernated
> 	    Stopped checking matches of MFTMirr against MFT at record 16
> 	    Filtered out reparse flags for selecting plugins
> 	    Delayed updating the MFT runlist when resizing in read-only mode
> 	    Double-checked whether record 15 is an extent of MFT
> 	    Checked whether the device to mount was forced read-only
> 	Stable Version 2017.3.23AR.1 (October 1, 2017)
> 	    Bypassed cluster allocation errors using --ignore-fs-check in ntfsclone
> 	    Upgraded ntfsrecover to support log files for Windows 10
> 	    Fixed the computation of highest_vcn when applying a runlist fixup
> 	    Fixed updating the vcn of subtree in ntfsrecover
> 	    Relaxed checks on security descriptors
> 	    Enabled directory operations in plugins
> 	    Decoded more reparse tags in ntfsinfo
> 	    Logged falling back to mounting read-only
> 	    Fixed compiling on MacOSX (Erik Larsson)
> 
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
>  config/rootfiles/common/ntfs-3g |  6 +++---
>  lfs/ntfs-3g                     | 12 ++++++++----
>  2 files changed, 11 insertions(+), 7 deletions(-)
> 
> diff --git a/config/rootfiles/common/ntfs-3g b/config/rootfiles/common/ntfs-3g
> index 9e46d2731..e187cbfaa 100644
> --- a/config/rootfiles/common/ntfs-3g
> +++ b/config/rootfiles/common/ntfs-3g
> @@ -1,8 +1,8 @@
>  bin/lowntfs-3g
>  bin/ntfs-3g
>  #lib/libntfs-3g.so
> -lib/libntfs-3g.so.88
> -lib/libntfs-3g.so.88.0.0
> +lib/libntfs-3g.so.89
> +lib/libntfs-3g.so.89.0.0
>  sbin/mkfs.ntfs
>  sbin/mount.lowntfs-3g
>  sbin/mount.ntfs-3g
> @@ -53,11 +53,11 @@ usr/bin/ntfsls
>  #usr/include/ntfs-3g/unistr.h
>  #usr/include/ntfs-3g/volume.h
>  #usr/include/ntfs-3g/xattrs.h
> -#usr/lib/libntfs-3g.a
>  #usr/lib/libntfs-3g.la
>  #usr/lib/libntfs-3g.so
>  #usr/lib/ntfs-3g
>  #usr/lib/pkgconfig/libntfs-3g.pc
> +usr/sbin/mkfs.ntfs
>  usr/sbin/mkntfs
>  usr/sbin/ntfsclone
>  usr/sbin/ntfscp
> diff --git a/lfs/ntfs-3g b/lfs/ntfs-3g
> index 0ee7dab93..3183dd84c 100644
> --- a/lfs/ntfs-3g
> +++ b/lfs/ntfs-3g
> @@ -24,7 +24,7 @@
>  
>  include Config
>  
> -VER        = 2017.3.23
> +VER        = 2021.8.22
>  
>  THISAPP    = ntfs-3g_ntfsprogs-$(VER)
>  DL_FILE    = $(THISAPP).tgz
> @@ -40,7 +40,7 @@ objects = $(DL_FILE)
>  
>  $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>  
> -$(DL_FILE)_MD5 = d97474ae1954f772c6d2fa386a6f462c
> +$(DL_FILE)_MD5 = 90da343e78877d388eb34cefae6799ae
>  
>  install : $(TARGET)
>  
> @@ -50,7 +50,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
>  
>  md5 : $(subst %,%_MD5,$(objects))
>  
> -dist:
> +dist: 
>  	@$(PAK)
>  
>  ###############################################################################
> @@ -74,8 +74,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>  	@$(PREBUILD)
>  	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
>  	$(UPDATE_AUTOMAKE)
> -	cd $(DIR_APP) && ./configure --prefix=/usr
> +	cd $(DIR_APP) && ./configure \
> +			--prefix=/usr \
> +			--disable-static
>  	cd $(DIR_APP) && make $(MAKETUNING)
>  	cd $(DIR_APP) && make install
> +	# make mkfs.ntfs link in sbin to mkntfs to match previous situation for this binary
> +	ln -s /usr/sbin/mkntfs /sbin/mkfs.ntfs
>  	@rm -rf $(DIR_APP)
>  	@$(POSTBUILD)
  

Patch

diff --git a/config/rootfiles/common/ntfs-3g b/config/rootfiles/common/ntfs-3g
index 9e46d2731..e187cbfaa 100644
--- a/config/rootfiles/common/ntfs-3g
+++ b/config/rootfiles/common/ntfs-3g
@@ -1,8 +1,8 @@ 
 bin/lowntfs-3g
 bin/ntfs-3g
 #lib/libntfs-3g.so
-lib/libntfs-3g.so.88
-lib/libntfs-3g.so.88.0.0
+lib/libntfs-3g.so.89
+lib/libntfs-3g.so.89.0.0
 sbin/mkfs.ntfs
 sbin/mount.lowntfs-3g
 sbin/mount.ntfs-3g
@@ -53,11 +53,11 @@  usr/bin/ntfsls
 #usr/include/ntfs-3g/unistr.h
 #usr/include/ntfs-3g/volume.h
 #usr/include/ntfs-3g/xattrs.h
-#usr/lib/libntfs-3g.a
 #usr/lib/libntfs-3g.la
 #usr/lib/libntfs-3g.so
 #usr/lib/ntfs-3g
 #usr/lib/pkgconfig/libntfs-3g.pc
+usr/sbin/mkfs.ntfs
 usr/sbin/mkntfs
 usr/sbin/ntfsclone
 usr/sbin/ntfscp
diff --git a/lfs/ntfs-3g b/lfs/ntfs-3g
index 0ee7dab93..3183dd84c 100644
--- a/lfs/ntfs-3g
+++ b/lfs/ntfs-3g
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 2017.3.23
+VER        = 2021.8.22
 
 THISAPP    = ntfs-3g_ntfsprogs-$(VER)
 DL_FILE    = $(THISAPP).tgz
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = d97474ae1954f772c6d2fa386a6f462c
+$(DL_FILE)_MD5 = 90da343e78877d388eb34cefae6799ae
 
 install : $(TARGET)
 
@@ -50,7 +50,7 @@  download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
-dist:
+dist: 
 	@$(PAK)
 
 ###############################################################################
@@ -74,8 +74,12 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
 	$(UPDATE_AUTOMAKE)
-	cd $(DIR_APP) && ./configure --prefix=/usr
+	cd $(DIR_APP) && ./configure \
+			--prefix=/usr \
+			--disable-static
 	cd $(DIR_APP) && make $(MAKETUNING)
 	cd $(DIR_APP) && make install
+	# make mkfs.ntfs link in sbin to mkntfs to match previous situation for this binary
+	ln -s /usr/sbin/mkntfs /sbin/mkfs.ntfs
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)