Hello community,

here is the log from the commit of package zerofree for openSUSE:Factory 
checked in at 2016-07-14 09:46:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zerofree (Old)
 and      /work/SRC/openSUSE:Factory/.zerofree.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zerofree"

Changes:
--------
--- /work/SRC/openSUSE:Factory/zerofree/zerofree.changes        2015-09-24 
06:14:00.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.zerofree.new/zerofree.changes   2016-07-14 
09:46:32.000000000 +0200
@@ -1,0 +2,11 @@
+Fri Jul  8 09:05:01 UTC 2016 - dmuel...@suse.com
+
+- adjust urls to new location
+
+-------------------------------------------------------------------
+Thu Jun 16 14:59:48 UTC 2016 - sweet_...@gmx.de
+
+- Update to zerofree-1.0.4
+  Minor change: use memcmp instead of loop
+
+-------------------------------------------------------------------

Old:
----
  zerofree-1.0.3.tgz

New:
----
  zerofree-1.0.4.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ zerofree.spec ++++++
--- /var/tmp/diff_new_pack.fzbaen/_old  2016-07-14 09:46:33.000000000 +0200
+++ /var/tmp/diff_new_pack.fzbaen/_new  2016-07-14 09:46:33.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package zerofree
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright 2008 Archie L. Cobbs.
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,16 +18,16 @@
 
 
 Name:           zerofree
-Version:        1.0.3
+Version:        1.0.4
 Release:        0
 Summary:        Utility for ext2 filesystems that zeroes out unallocated blocks
 License:        GPL-2.0
 Group:          System/Filesystems
-Url:            http://intgat.tigress.co.uk/rmy/uml/index.html
+Url:            http://frippery.org/uml/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
-Source0:        http://intgat.tigress.co.uk/rmy/uml/%{name}-%{version}.tgz
-Source1:        http://intgat.tigress.co.uk/rmy/uml/sparsify.c
+Source0:        http://frippery.org/uml/%{name}-%{version}.tgz
+Source1:        http://frippery.org/uml/sparsify.c
 Source2:        zerofree.8
 BuildRequires:  libext2fs-devel
 

++++++ zerofree-1.0.3.tgz -> zerofree-1.0.4.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zerofree-1.0.3/zerofree.c 
new/zerofree-1.0.4/zerofree.c
--- old/zerofree-1.0.3/zerofree.c       2012-08-09 22:47:13.000000000 +0200
+++ new/zerofree-1.0.4/zerofree.c       2015-10-18 14:12:36.000000000 +0200
@@ -1,13 +1,14 @@
 /*
  * zerofree - a tool to zero free blocks in an ext2 filesystem
  *
- * Copyright (C) 2004-2012 R M Yorston
+ * Copyright (C) 2004-2015 R M Yorston
  *
  * This file may be redistributed under the terms of the GNU General Public
  * License, version 2.
  *
  * Changes:
  *
+ * 2015-10-18  Use memcmp.  Suggested by Damien Clark.
  * 2010-10-17  Allow non-zero fill value.   Patch from Jacob Nevins.
  * 2007-08-12  Allow use on filesystems mounted read-only.   Patch from
  *             Jan Krämer.
@@ -32,7 +33,7 @@
        unsigned long blk;
        unsigned char *buf;
        unsigned char *empty;
-       int i, c;
+       int c;
        unsigned int free, modified;
        double percent;
        int old_percent;
@@ -146,13 +147,7 @@
                        return 1;
                }
 
-               for ( i=0; i < fs->blocksize; ++i ) {
-                       if ( buf[i] != fillval ) {
-                               break;
-                       }
-               }
-
-               if ( i == fs->blocksize ) {
+               if ( !memcmp(buf, empty, fs->blocksize) ) {
                        continue;
                }
 


Reply via email to