Blame SOURCES/0009-diff-do-not-pad-uid-gid-in-CSV-mode.patch

0d20ef
From 5d1a88d2feae5c37adcfd50b7873b31019cfc4ed Mon Sep 17 00:00:00 2001
0d20ef
From: Pino Toscano <ptoscano@redhat.com>
0d20ef
Date: Tue, 14 Oct 2014 11:10:22 +0200
0d20ef
Subject: [PATCH] diff: do not pad uid/gid in CSV mode
0d20ef
0d20ef
(cherry picked from commit 3276845df1847d037fc4a5bed24966e0f9a0d564)
0d20ef
---
0d20ef
 diff/diff.c | 2 +-
0d20ef
 1 file changed, 1 insertion(+), 1 deletion(-)
0d20ef
0d20ef
diff --git a/diff/diff.c b/diff/diff.c
0d20ef
index f4b25e9..ad371b0 100644
0d20ef
--- a/diff/diff.c
0d20ef
+++ b/diff/diff.c
0d20ef
@@ -1108,7 +1108,7 @@ output_int64_uid (int64_t i)
0d20ef
 {
0d20ef
   next_field ();
0d20ef
   /* csv doesn't need escaping */
0d20ef
-  if (printf ("%4" PRIi64, i) < 0) {
0d20ef
+  if (printf (csv ? "%" PRIi64 : "%4" PRIi64, i) < 0) {
0d20ef
     perror ("printf");
0d20ef
     exit (EXIT_FAILURE);
0d20ef
   }
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef