Skip to content

Commit

Permalink
Applied updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Dec 24, 2019
1 parent 9b57f7f commit 5ec2c7e
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 41 deletions.
37 changes: 21 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Files to ignore by git
#
# Version: 20161030
# Version: 20191220

# Generic auto-generated build files
*~
Expand All @@ -15,17 +15,19 @@
*.lo
*.log
*.loT
*.Plo
*.Po
*.o
*.obj
*.Plo
*.Po
*.so
*.so.[0-9][0-9]*
*.so.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*
*.swp
*.trs
*.Tpo
*.trs
/*.egg-info/
.deps
.dirstamp
.libs
INSTALL
Makefile
Expand Down Expand Up @@ -53,38 +55,35 @@ stamp-h[1-9]
/install-sh
/libtool
/ltmain.sh
/missing
/test-driver
/ylwrap
/m4/codeset.m4
/m4/extern-inline.m4
/m4/fcntl-o.m4
/m4/gettext.m4
/m4/glibc2.m4
/m4/glibc21.m4
/m4/glibc2.m4
/m4/iconv.m4
/m4/intdiv0.m4
/m4/intl.m4
/m4/intldir.m4
/m4/intl.m4
/m4/intlmacosx.m4
/m4/intmax.m4
/m4/inttypes-pri.m4
/m4/inttypes_h.m4
/m4/inttypes-pri.m4
/m4/lcmessage.m4
/m4/lib-ld.m4
/m4/lib-link.m4
/m4/lib-prefix.m4
/m4/libtool.m4
/m4/lock.m4
/m4/longlong.m4
/m4/lt~obsolete.m4
/m4/ltoptions.m4
/m4/ltsugar.m4
/m4/ltversion.m4
/m4/lt~obsolete.m4
/m4/nls.m4
/m4/po.m4
/m4/progtest.m4
/m4/printf-posix.m4
/m4/progtest.m4
/m4/size_max.m4
/m4/stdint_h.m4
/m4/threadlib.m4
Expand All @@ -93,22 +92,24 @@ stamp-h[1-9]
/m4/wchar_t.m4
/m4/wint_t.m4
/m4/xsize.m4
/MANIFEST
/missing
/po/boldquot.sed
/po/[email protected]
/po/[email protected]
/po/insert-header.sin
/po/Makefile.in.in
/po/Makevars
/po/Makevars.template
/po/Rules-quot
/po/POTFILES
/po/quot.sed
/po/remove-potcdate.sed
/po/remove-potcdate.sin
/po/Rules-quot
/test-driver
/ylwrap

# Project specific files
/libewf.pc
/libewf.spec
/common/config.h
/common/config.h.in
/common/types.h
Expand All @@ -117,9 +118,13 @@ stamp-h[1-9]
/include/libewf/definitions.h
/include/libewf/features.h
/include/libewf/types.h
/libewf.pc
/libewf.spec
/libewf/libewf.rc
/libewf/libewf_definitions.h
/pyewf-python[23]/*.[ch]
/ewf.net/ewf.net.rc
/ewftools/*.exe
/ewftools/ewfacquire
/ewftools/ewfacquirestream
/ewftools/ewfdebug
Expand All @@ -128,7 +133,7 @@ stamp-h[1-9]
/ewftools/ewfmount
/ewftools/ewfrecover
/ewftools/ewfverify
/pyewf-python[23]/*.[ch]
/tests/*.exe
/tests/ewf_test_glob
/tests/ewf_test_open_close
/tests/ewf_test_read
Expand Down
18 changes: 9 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,33 +242,33 @@ build_script:
msbuild /verbosity:quiet vs2017\libewf.sln /property:Platform=x64 /property:PlatformToolset=v141 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%BUILD_ENVIRONMENT%]==[python] (
"%PYTHON%" setup.py bdist_msi bdist_wheel )
- sh: if test ${BUILD_ENVIRONMENT} = "python"; then ./synclibs.sh && ./autogen.sh; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python"; then ./synclibs.sh && ./autogen.sh && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null; fi
- sh: if test ${BUILD_ENVIRONMENT} = "python"; then ${PYTHON} setup.py bdist_wheel; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
xcopy /i /q /s C:\projects\libewf C:\cygwin\home\appveyor\libewf &&
C:\cygwin\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh" )
C:\cygwin\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null" )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
xcopy /i /q /s C:\projects\libewf C:\cygwin64\home\appveyor\libewf &&
C:\cygwin64\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh" )
C:\cygwin64\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
xcopy /i /q /s C:\projects\libewf C:\MinGW\msys\1.0\home\appveyor\libewf &&
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libewf && sed 's/@VERSION@/0.29/g' m4/pkg.m4.in > m4/pkg.m4 && ./synclibs.sh --use-head && ./autogen.sh" )
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libewf && sed 's/@VERSION@/0.29/g' m4/pkg.m4.in > m4/pkg.m4 && ./synclibs.sh --use-head && ./autogen.sh && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
xcopy /i /q /s C:\projects\libewf C:\msys64\home\appveyor\libewf &&
C:\msys64\usr\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh" )
C:\msys64\usr\bin\bash -e -l -c "cd libewf && ./synclibs.sh --use-head && ./autogen.sh && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null" )

test_script:
- cmd: rem Run tests
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
.\runtests.ps1 }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
C:\cygwin\bin\bash -l -c "cd libewf && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
C:\cygwin\bin\bash -l -c "cd libewf && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
C:\cygwin64\bin\bash -l -c "cd libewf && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
C:\cygwin64\bin\bash -l -c "cd libewf && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
C:\MinGW\msys\1.0\bin\bash -l -c "cd libewf && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
C:\MinGW\msys\1.0\bin\bash -l -c "cd libewf && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
C:\msys64\usr\bin\bash -l -c "cd libewf && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
C:\msys64\usr\bin\bash -l -c "cd libewf && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )

after_test:
- cmd: if [%TARGET%]==[mingw-gcc-no-optimization] (
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ( 2.59 )

AC_INIT(
[libewf],
[20140807],
[20140808],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
5 changes: 3 additions & 2 deletions dpkg/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Source: libewf
Priority: extra
Maintainer: Joachim Metz <[email protected]>
Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config, zlib1g-dev, libssl-dev, python-dev, python-setuptools, python3-dev, python3-setuptools, libfuse-dev
Standards-Version: 3.9.5
Standards-Version: 4.1.4
Section: libs
Homepage: https://github.com/libyal/libewf
Homepage: https://github.com/libyal/libewf-legacy
Vcs-Git: https://github.com/libyal/libewf-legacy.git

Package: libewf
Architecture: any
Expand Down
2 changes: 1 addition & 1 deletion dpkg/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Upstream-Name: libewf
Source: https://github.com/libyal/libewf

Files: *
Copyright: 2006-2017, Joachim Metz <[email protected]>
Copyright: 2006-2019, Joachim Metz <[email protected]>
License: LGPL-3.0+

License: LGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion libewf-legacy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ features: ["debug_output", "python", "dokan", "fuse"]

[library]
build_dependencies: ["crypto", "zlib"]
public_types: ["data_chunk", "file_entry", "handle"]
public_types: ["file_entry", "handle"]

[python_module]
year_of_creation: "2008"
Expand Down
4 changes: 3 additions & 1 deletion libewf/libewf_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ int libewf_handle_clone(

return( 1 );
}
internal_source_handle = (libewf_internal_handle_t *) *source_handle;
internal_source_handle = (libewf_internal_handle_t *) source_handle;

if( internal_source_handle->io_handle == NULL )
{
Expand Down Expand Up @@ -768,6 +768,8 @@ int libewf_handle_clone(
internal_destination_handle->maximum_number_of_open_handles = internal_source_handle->maximum_number_of_open_handles;
internal_destination_handle->date_format = internal_source_handle->date_format;

*destination_handle = (libewf_handle_t *) internal_destination_handle;

return( 1 );

on_error:
Expand Down
1 change: 0 additions & 1 deletion libewf/libewf_libfdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#if defined( HAVE_LOCAL_LIBFDATA )

#include <libfdata_area.h>
#include <libfdata_btree.h>
#include <libfdata_definitions.h>
#include <libfdata_list.h>
#include <libfdata_list_element.h>
Expand Down
4 changes: 1 addition & 3 deletions libmfdata/libmfdata_libbfio.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <libbfio_pool.h>
#include <libbfio_types.h>

#elif defined( HAVE_LIBBFIO_H )
#else

/* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT
* before including libbfio.h
Expand All @@ -45,8 +45,6 @@

#include <libbfio.h>

#else
#error Missing libbfio.h
#endif

#endif
Expand Down
4 changes: 1 addition & 3 deletions libmfdata/libmfdata_libcdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <libcdata_tree_node.h>
#include <libcdata_types.h>

#elif defined( HAVE_LIBCDATA_H )
#else

/* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT
* before including libcdata.h
Expand All @@ -48,8 +48,6 @@

#include <libcdata.h>

#else
#error Missing libcdata.h
#endif

#endif
Expand Down
4 changes: 1 addition & 3 deletions libmfdata/libmfdata_libfcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <libfcache_definitions.h>
#include <libfcache_types.h>

#elif defined( HAVE_LIBFCACHE_H )
#else

/* If libtool DLL support is enabled set LIBFCACHE_DLL_IMPORT
* before including libfcache.h
Expand All @@ -44,8 +44,6 @@

#include <libfcache.h>

#else
#error Missing libfcache.h
#endif

#endif
Expand Down
1 change: 1 addition & 0 deletions tests/ewf_test_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <common.h>
#include <memory.h>
#include <types.h>

#if defined( HAVE_STDLIB_H ) || defined( WINAPI )
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions tests/ewf_test_seek.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#include <common.h>
#include <types.h>

#if defined( HAVE_STDLIB_H ) || defined( WINAPI )
#include <stdlib.h>
Expand Down

0 comments on commit 5ec2c7e

Please sign in to comment.