New upstream version 1.6
Joao Eriberto Mota Filho
4 years ago
|
0 |
2020-01-13 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
|
|
1 |
Version 1.6
|
|
2 |
|
|
3 |
[ Joao Eriberto Mota Filho ]
|
|
4 |
|
|
5 |
* Updated bash completion script.
|
|
6 |
|
|
7 |
[ David Polverari ]
|
|
8 |
|
|
9 |
* Fixed a segfault when using 'errlog='.
|
|
10 |
|
0 | 11 |
2019-11-02 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
|
1 | 12 |
Version 1.5
|
2 | 13 |
|
19 | 19 |
|
20 | 20 |
AC_PREREQ([2.69])
|
21 | 21 |
|
22 | |
AC_INIT([dcfldd], [1.5], [https://github.com/resurrecting-open-source-projects/dcfldd/issues])
|
|
22 |
AC_INIT([dcfldd], [1.6], [https://github.com/resurrecting-open-source-projects/dcfldd/issues])
|
23 | 23 |
AC_CONFIG_SRCDIR(src/dcfldd.c)
|
24 | 24 |
AM_INIT_AUTOMAKE
|
25 | 25 |
|
0 | 0 |
# bash completion for dcfldd -*- shell-script -*-
|
1 | |
# Copyright 2017 Joao Eriberto Mota Filho <eriberto@debian.org>
|
2 | |
# Version: 20170320
|
|
1 |
# Copyright 2017-2020 Joao Eriberto Mota Filho <eriberto@debian.org>
|
|
2 |
# Version: 20200113
|
3 | 3 |
# Based in dd completion script.
|
4 | 4 |
|
5 | 5 |
_dcfldd()
|
|
14 | 14 |
notrunc ucase swab noerror sync' -- "$cur" ) )
|
15 | 15 |
return 0
|
16 | 16 |
;;
|
17 | |
errlog=*|if=*|of=*|verifylog=*|vf=*)
|
|
17 |
errlog=*|if=*|of=*|md5log=*|sha1log=*|sha256log=*|sha384log=*|sha512log=*|verifylog=*|vf=*)
|
18 | 18 |
cur=${cur#*=}
|
19 | 19 |
_filedir
|
20 | 20 |
return 0
|
|
45 | 45 |
_expand || return 0
|
46 | 46 |
|
47 | 47 |
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) \
|
48 | |
$( compgen -W 'bs cbs conv count ibs if obs of seek skip pattern
|
49 | |
textpattern errlog hashwindow hash hashlog
|
50 | |
hashconv hashformat totalhashformat status
|
51 | |
statusinterval sizeprobe split splitformat vf
|
|
48 |
$( compgen -W 'bs cbs conv count limit ibs if obs of seek skip pattern
|
|
49 |
textpattern errlog hash md5log sha1log sha256log sha384log
|
|
50 |
sha512log hashwindow hashconv hashformat totalhashformat
|
|
51 |
status statusinterval sizeprobe split splitformat vf
|
52 | 52 |
verifylog' -S '=' -- "$cur" ) )
|
53 | 53 |
} &&
|
54 | 54 |
complete -F _dcfldd -o nospace dcfldd
|
4 | 4 |
#
|
5 | 5 |
# This script can be used under BSD-3-Clause license.
|
6 | 6 |
|
7 | |
T2M_DATE="01 Nov 2019"
|
|
7 |
T2M_DATE="13 Jan 2020"
|
8 | 8 |
T2M_NAME=dcfldd
|
9 | |
T2M_VERSION=1.5
|
|
9 |
T2M_VERSION=1.6
|
10 | 10 |
T2M_LEVEL=1
|
11 | 11 |
T2M_DESC="enhanced version of dd for forensics and security"
|
12 | 12 |
|
0 | 0 |
.\" Text automatically generated by txt2man
|
1 | |
.TH dcfldd 1 "01 Nov 2019" "dcfldd-1.5" "enhanced version of dd for forensics and security"
|
|
1 |
.TH dcfldd 1 "13 Jan 2020" "dcfldd-1.6" "enhanced version of dd for forensics and security"
|
2 | 2 |
.SH NAME
|
3 | 3 |
\fBdcfldd \fP- enhanced version of dd for forensics and security
|
4 | 4 |
\fB
|
2 | 2 |
* By Nicholas Harbour
|
3 | 3 |
*/
|
4 | 4 |
|
5 | |
/* Copyright (C) 85, 90, 91, 1995-2001, 2005 Free Software Foundation, Inc.
|
|
5 |
/* Copyright 85, 90, 91, 1995-2001, 2005 Free Software Foundation, Inc.
|
|
6 |
Copyright 2020 David Polverari <david.polverari@gmail.com>
|
6 | 7 |
|
7 | 8 |
This program is free software; you can redistribute it and/or modify
|
8 | 9 |
it under the terms of the GNU General Public License as published by
|
|
69 | 70 |
|
70 | 71 |
void log_info(char *str, ...)
|
71 | 72 |
{
|
72 | |
va_list ap;
|
|
73 |
va_list ap, ap2;
|
73 | 74 |
|
74 | 75 |
va_start(ap, str);
|
|
76 |
va_copy(ap2, ap);
|
75 | 77 |
vfprintf(stderr, str, ap);
|
76 | 78 |
if (errlog != NULL) {
|
77 | |
vfprintf(errlog, str, ap);
|
|
79 |
vfprintf(errlog, str, ap2);
|
|
80 |
va_end(ap2);
|
78 | 81 |
}
|
79 | 82 |
va_end(ap);
|
80 | 83 |
}
|