[Pkg-privacy-commits] [libgsecuredelete] 23/168: Added first attempt to implement smem.

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 20:06:34 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 d1372ea06f15b6b58fc9dc0cce7fecd26158eb85
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Thu Oct 1 19:24:23 2009 +0200

    Added first attempt to implement smem.
    
    Added MemOperation, not tested.
---
 gsecuredelete/Makefile.am        |  1 +
 gsecuredelete/mem-operation.vala | 41 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/gsecuredelete/Makefile.am b/gsecuredelete/Makefile.am
index e228abd..691ccdc 100644
--- a/gsecuredelete/Makefile.am
+++ b/gsecuredelete/Makefile.am
@@ -12,6 +12,7 @@ libgsecuredelete_la_SOURCES = async-operation.vala \
                               securedelete-operation.vala \
                               delete-operation.vala \
                               fill-operation.vala \
+                              mem-operation.vala \
                               utils.vala
 libgsecuredelete_la_include_HEADERS = libgsecuredelete.h \
                                       libgsecuredelete.vapi
diff --git a/gsecuredelete/mem-operation.vala b/gsecuredelete/mem-operation.vala
new file mode 100644
index 0000000..5a5d26e
--- /dev/null
+++ b/gsecuredelete/mem-operation.vala
@@ -0,0 +1,41 @@
+/* 
+ * 
+ * Copyright (C) 2009 Colomban Wendling <ban at herbesfolles.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * 
+ */
+
+namespace SecureDelete
+{
+  /*
+   * TODO:
+   * * test
+   */
+  
+  public class MemOperation : SecureDeleteOperation
+  {
+    /* builds the argument vector */
+    private override List<string> build_args ()
+    {
+      List<string> args = null;
+      
+      args.append ("smem");
+      args.append ("-v");
+      this.add_mode_argument (ref args);
+      
+      return args;
+    }
+  }
+}

-- 
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