PKGBUILDs/extra/rarian/user-segfault.patch
2009-10-09 21:23:22 -05:00

14 lines
336 B
Diff

--- 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;