Permalink
Browse files

- Fixed a bug in missing the proper handling of files with spaces when

using the --Wipe secure deletion mode (reported by Lars Wilke).
- The --Force option now supports the ability to encrypt/decrypt hidden
files (suggested by Lars Wilke).


git-svn-id: file:///home/mbr/svn/gpgdir_repos/gpgdir/trunk@332 958e171a-1414-0410-8e2f-9d295d3c0db0
  • Loading branch information...
1 parent e7862ba commit 71c975a8e623d441154bec63f1f3c92a5ae2e330 @mrash committed Nov 9, 2008
View
@@ -47,3 +47,9 @@ Franck Joncourt
http://lintian.debian.org/tags/manpage-has-bad-whatis-entry.html
- Suggested the appropriate bugfix to interface non-interactively with the
wipe program (-f instead of -I in later versions).
+
+Lars Wilke
+ - Reported a bug in missing the proper handling of files with spaces when
+ using the --Wipe secure deletion mode.
+ - Suggested the ability to encrypt/decrypt hidden files, and --Force now
+ supports this.
View
@@ -1,3 +1,9 @@
+gpgdir-1.9.4 (11//2008):
+ - Fixed a bug in missing the proper handling of files with spaces when
+ using the --Wipe secure deletion mode (reported by Lars Wilke).
+ - The --Force option now supports the ability to encrypt/decrypt hidden
+ files (suggested by Lars Wilke).
+
gpgdir-1.9.3 (11/05/2008):
- Bugfix for using -f instead of -I for non-interactive file erasure
(Franck Joncourt).
View
@@ -666,7 +666,7 @@ sub delete_file() {
$cmd .= ' -f -s ';
}
}
- $cmd .= $file;
+ $cmd .= qq|"$file"|;
if ($verbose) {
print " Executing: $cmd\n";
}
@@ -1166,10 +1166,19 @@ sub find_files() {
sub check_file_criteria() {
my $file = shift;
### skip all links, zero size files, all hidden
- ### files (includes .gnupg files), etc.
+ ### files (includes the .gnupg directory), etc.
return if -d $file;
+
+ unless ($force_mode) {
+ if ($file =~ m|/\.|) {
+ print "[-] Skipping file: $file\n"
+ if $verbose and not $quiet;
+ return;
+ }
+ }
+
if (-e $file and not -l $file and -s $file != 0
- and $file !~ m|/\.|) {
+ and $file !~ m|\.gpgdir\.pid| and $file !~ m|\.gnupg|) {
if ($encrypt_mode or $signing_mode) {
if ($file =~ m|\.gpg| or $file =~ m|\.asc|) {
print "[-] Skipping encrypted/signed file: $file\n" unless $quiet;
@@ -0,0 +1 @@
+one space in filename
@@ -0,0 +1 @@
+two spaces in filename
@@ -0,0 +1 @@
+space and dash

0 comments on commit 71c975a

Please sign in to comment.