]> git.pld-linux.org Git - packages/avifile.git/blame - avifile-etc_dir.patch
- enhanced ffmpeg patch to cover 4.x
[packages/avifile.git] / avifile-etc_dir.patch
CommitLineData
6f186639 1diff -Nru avifile0.7-0.7.32/lib/common/Registry.cpp avifile0.7-0.7.32.new/lib/common/Registry.cpp
2--- avifile0.7-0.7.32/lib/common/Registry.cpp Fri Oct 4 09:07:33 2002
3+++ avifile0.7-0.7.32.new/lib/common/Registry.cpp Sun Mar 23 13:59:08 2003
c91f93cb 4@@ -33,11 +33,15 @@
6f186639 5 if (!config)
6 {
7 char* home;
8- home = getenv("HOME");
c91f93cb
JB
9+ home = getenv("HOME_ETC");
10 if (home == 0)
6f186639 11 {
12- struct passwd* pwent = getpwuid(getuid());
13- home = pwent->pw_dir;
14+ home = getenv("HOME");
15+ if (home == 0)
16+ {
17+ struct passwd* pwent = getpwuid(getuid());
18+ home = pwent->pw_dir;
19+ }
20 }
21 avm::string s(home);
22 if (!sConfigDir)
This page took 0.112988 seconds and 4 git commands to generate.