]>
Commit | Line | Data |
---|---|---|
6f186639 | 1 | diff -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) |