forked from pool/fdupes
ebd601a9d7
- update to 1.5.0-PR2 * new "--summarize" option * new "--recurse:" selective recursion option * new "--noprompt" option for totally automated deletion of duplicate files. * sorts duplicates (old to new) for consistent order when listing or deleteing duplicate files. * tests for early matching of files, which should help speed up the matching process when large files are involved. * warns whenever a file cannot be deleted. * bugfixes (proper file closing, zero-length files, ...) - add -p/--permissions switch so files with different permissions or uid/gid are not considered as duplicates (bnc#784670) * this mode is a default one for fdupes macro - refresh all patches - drop the fdupes-sort-output.diff - use the upstream mtime sorting - add the debian patches - see spec file for details OBS-URL: https://build.opensuse.org/request/show/138346 OBS-URL: https://build.opensuse.org/package/show/utilities/fdupes?expand=0&rev=6
34 lines
796 B
Diff
34 lines
796 B
Diff
From 6b0f55c489ff78bd29d6d881fddf7abeabbed12f Mon Sep 17 00:00:00 2001
|
|
From: Michal Vyskocil <mvyskocil@suse.cz>
|
|
Date: Fri, 12 Oct 2012 15:21:49 +0200
|
|
Subject: [PATCH 09/10] glibc endianness check in md5
|
|
|
|
https://bugzilla.novell.com/show_bug.cgi?id=406825
|
|
---
|
|
md5/md5.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/md5/md5.c b/md5/md5.c
|
|
index 233ee2d..3ad899b 100644
|
|
--- a/md5/md5.c
|
|
+++ b/md5/md5.c
|
|
@@ -45,6 +45,15 @@
|
|
#include "md5.h"
|
|
#include <string.h>
|
|
|
|
+/* endianness check using glibc endian.h */
|
|
+#include <endian.h>
|
|
+
|
|
+#if __BYTE_ORDER == __BIG_ENDIAN
|
|
+# define ARCH_IS_BIG_ENDIAN 1
|
|
+#elif __BYTE_ORDER == __LITTLE_ENDIAN
|
|
+# define ARCH_IS_BIG_ENDIAN 0
|
|
+#endif
|
|
+
|
|
#ifdef TEST
|
|
/*
|
|
* Compile with -DTEST to create a self-contained executable test program.
|
|
--
|
|
1.7.11.5
|
|
|