summaryrefslogtreecommitdiff
path: root/debian/patches/00git_truncate_frequent.patch
blob: 4b48ae96ee79f9586ebad2ff7b56910779671ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 803cbdfbd78b66b17ead45b1584d65a258e785bf Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Wed, 25 May 2011 00:58:10 +0000
Subject: ck-history: don't truncate --frequent output to 8 chars

GDM screenscrapes the output and so we need the full username.

https://bugzilla.gnome.org/show_bug.cgi?id=650330
---
diff --git a/tools/ck-history.c b/tools/ck-history.c
index d02caaa..85d9e6f 100644
--- a/tools/ck-history.c
+++ b/tools/ck-history.c
@@ -804,7 +804,7 @@ generate_report_frequent (int         uid,
                 data = user_counts->data;
 
                 username = get_user_name_for_uid (data->uid);
-                g_print ("%-8.8s %u\n", username, data->count);
+                g_print ("%-8s %u\n", username, data->count);
                 g_free (data);
                 user_counts = g_list_delete_link (user_counts, user_counts);
                 g_free (username);
--
cgit v0.9.0.2-2-gbebe