1Description: billard-gl tries to get the HOME dir but doesn't fail gracefully
2 if it is not set in the environment. This patch addresses that.
3Author: Barry deFreese <bdefreese@debian.org>
4Debian-Bug: http://bugs.debian.org/715681
5Index: billard-gl-1.75/src/KommandoZeilenParameter.cpp
6===================================================================
7--- billard-gl-1.75.orig/src/KommandoZeilenParameter.cpp 2013-08-09 11:52:05.000000000 -0400
8+++ billard-gl-1.75/src/KommandoZeilenParameter.cpp 2013-08-09 20:25:45.906456954 -0400
14+#include <sys/types.h>
17 #include "KommandoZeilenParameter.h"
23- snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",getenv("HOME"));
24+ const char *homedir = getenv("HOME");
27+ pw = getpwuid(getuid());
28+ homedir = pw->pw_dir;
30+ snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",homedir);
31 f=fopen(dateiname,"w+");
38- snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",getenv("HOME"));
39+ const char *homedir = getenv("HOME");
42+ pw = getpwuid(getuid());
43+ homedir = pw->pw_dir;
45+ snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",homedir);
46 f=fopen(dateiname,"r");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list