summaryrefslogtreecommitdiffstats
path: root/abs/extra/rarian/user-segfault.patch
blob: 3311cecdd2980b11760522fa75b9c9f8abd16dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- util/rarian-sk-get-cl.cpp~	2008-07-28 19:23:28.000000000 +0200
+++ util/rarian-sk-get-cl.cpp	2008-07-28 19:23:28.000000000 +0200
@@ -160,6 +160,11 @@
 {
   char *filename = NULL;
   char *user = getenv ("USERNAME");
+
+  if (user == NULL) {
+    user = getenv ("USER");
+  }
+
   char *basepath = NULL;
   int i=0;
   int last = 0;