]> git.pld-linux.org Git - packages/avifile.git/blob - avifile-etc_dir.patch
- enhanced ffmpeg patch to cover 4.x
[packages/avifile.git] / avifile-etc_dir.patch
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
4 @@ -33,11 +33,15 @@
5      if (!config)
6      {
7         char* home;
8 -       home = getenv("HOME");
9 +       home = getenv("HOME_ETC");
10         if (home == 0)
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.067157 seconds and 3 git commands to generate.