]> git.pld-linux.org Git - packages/avifile.git/commitdiff
- CONFIG_DIR support
authorjuandon <witekfl@pld-linux.org>
Sun, 23 Mar 2003 17:12:41 +0000 (17:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    avifile-home_etc.patch -> 1.1

avifile-home_etc.patch [new file with mode: 0644]

diff --git a/avifile-home_etc.patch b/avifile-home_etc.patch
new file mode 100644 (file)
index 0000000..b7d0203
--- /dev/null
@@ -0,0 +1,31 @@
+diff -Nru avifile0.7-0.7.32/lib/common/Registry.cpp avifile0.7-0.7.32.new/lib/common/Registry.cpp
+--- avifile0.7-0.7.32/lib/common/Registry.cpp  Fri Oct  4 09:07:33 2002
++++ avifile0.7-0.7.32.new/lib/common/Registry.cpp      Sun Mar 23 13:59:08 2003
+@@ -33,15 +33,22 @@
+     if (!config)
+     {
+       char* home;
+-      home = getenv("HOME");
+-      if (home == 0)
++      int config_dir_used = 0;
++      home = getenv("CONFIG_DIR");
++      if (home) config_dir_used = 1;
++      else
+       {
+-          struct passwd* pwent = getpwuid(getuid());
+-          home = pwent->pw_dir;
++              home = getenv("HOME");
++              if (home == 0)
++              {
++              struct passwd* pwent = getpwuid(getuid());
++              home = pwent->pw_dir;
++              }
+       }
+       avm::string s(home);
+       if (!sConfigDir)
+-          s += "/.avm";
++              if (config_dir_used) s+= "/avm";
++          else s += "/.avm";
+       else
+       {
+           s += "/";
This page took 0.032908 seconds and 4 git commands to generate.