From 14f11246d2eb0bfd9c0a7f5eb92868bb6a040d2c Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Jul 21 2009 06:31:52 +0000 Subject: fix Werror build issues --- diff --git a/ecryptfs-utils-75-werror.patch b/ecryptfs-utils-75-werror.patch index 85e2bbe..a2da446 100644 --- a/ecryptfs-utils-75-werror.patch +++ b/ecryptfs-utils-75-werror.patch @@ -1,6 +1,18 @@ +diff -up ecryptfs-utils_76.orig/src/libecryptfs/ecryptfs-stat.c.werror ecryptfs-utils_76.orig/src/libecryptfs/ecryptfs-stat.c +--- ecryptfs-utils_76.orig/src/libecryptfs/ecryptfs-stat.c.werror 2009-07-17 01:24:18.000000000 +0200 ++++ ecryptfs-utils_76.orig/src/libecryptfs/ecryptfs-stat.c 2009-07-21 08:10:43.516946733 +0200 +@@ -146,7 +146,7 @@ int ecryptfs_parse_stat(struct ecryptfs_ + if (buf_size < (ECRYPTFS_FILE_SIZE_BYTES + + MAGIC_ECRYPTFS_MARKER_SIZE_BYTES + + 4)) { +- printf("%s: Invalid metadata size; must have at least [%lu] " ++ printf("%s: Invalid metadata size; must have at least [%zu] " + "bytes; there are only [%zu] bytes\n", __FUNCTION__, + (ECRYPTFS_FILE_SIZE_BYTES + + MAGIC_ECRYPTFS_MARKER_SIZE_BYTES diff -up ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c.werror ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c ---- ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c.werror 2009-07-20 15:17:30.013884686 +0200 -+++ ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c 2009-07-20 15:19:17.111071710 +0200 +--- ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c.werror 2009-07-17 01:24:18.000000000 +0200 ++++ ecryptfs-utils_76.orig/src/pam_ecryptfs/pam_ecryptfs.c 2009-07-21 08:10:07.068947047 +0200 @@ -42,31 +42,6 @@ #define PRIVATE_DIR "Private"