[Pkg-privacy-commits] [libgsecuredelete] 22/168: Use the new generic mode in DeleteOperation and FillOperation.

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 20:06:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository libgsecuredelete.

commit 06eaaa383f3fed88cbb2c7dbb25fa02554851229
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Thu Oct 1 19:21:14 2009 +0200

    Use the new generic mode in DeleteOperation and FillOperation.
---
 gsecuredelete/delete-operation.vala       |  8 +-------
 gsecuredelete/fill-operation.vala         | 12 ++----------
 gsecuredelete/securedelete-operation.vala |  2 +-
 3 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/gsecuredelete/delete-operation.vala b/gsecuredelete/delete-operation.vala
index 584e49c..1c51fa2 100644
--- a/gsecuredelete/delete-operation.vala
+++ b/gsecuredelete/delete-operation.vala
@@ -27,10 +27,6 @@ namespace SecureDelete
     private uint          n_files = 0;
     
     /* properties */
-    /* whether to use fast and insecure mode */
-    public bool fast {
-      get; set; default = false;
-    }
     /* list of files */
     public List<string> paths {
       get {
@@ -70,9 +66,7 @@ namespace SecureDelete
       
       args.append ("srm");
       args.append ("-rv");
-      if (this.fast) {
-        args.append ("-f");
-      }
+      this.add_mode_argument (ref args);
       this.n_files = 0;
       foreach (unowned string path in this._paths) {
         args.append (path);
diff --git a/gsecuredelete/fill-operation.vala b/gsecuredelete/fill-operation.vala
index 7604b62..48a518e 100644
--- a/gsecuredelete/fill-operation.vala
+++ b/gsecuredelete/fill-operation.vala
@@ -22,17 +22,11 @@ namespace SecureDelete
   /*
    * TODO:
    * support -i and -I options of sfill,
-   * perhaps support -l and -z.
+   * perhaps support -z.
    */
   
   public class FillOperation : SecureDeleteOperation
   {
-    /** Whether to do fast and insecure filling */
-    public bool fast {
-      get;
-      set;
-      default = false;
-    }
     /** FillOperation:directory:
      * The directory to fill (must of course be on the filesystem to clean).
      * I recommend you not to fill in a useful directory but inside a new and
@@ -59,9 +53,7 @@ namespace SecureDelete
       
       args.append ("sfill");
       args.append ("-v");
-      if (this.fast) {
-        args.append ("-f");
-      }
+      this.add_mode_argument (ref args);
       args.append (this.directory);
       
       return args;
diff --git a/gsecuredelete/securedelete-operation.vala b/gsecuredelete/securedelete-operation.vala
index af253a0..a0de657 100644
--- a/gsecuredelete/securedelete-operation.vala
+++ b/gsecuredelete/securedelete-operation.vala
@@ -46,7 +46,7 @@ namespace SecureDelete
    */
   public abstract class SecureDeleteOperation : AsyncOperation
   {
-    /** Whether to do fast and insecure filling */
+    /** The security mode */
     public SecureDeleteOperationMode mode {
       get;
       set;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git



More information about the Pkg-privacy-commits mailing list