]> git.pld-linux.org Git - packages/axel.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:
    axel-home_etc.patch -> 1.1

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

diff --git a/axel-home_etc.patch b/axel-home_etc.patch
new file mode 100644 (file)
index 0000000..612645b
--- /dev/null
@@ -0,0 +1,17 @@
+diff -Nru axel-1.0a/conf.c axel-1.0a.new/conf.c
+--- axel-1.0a/conf.c   Tue Feb 19 18:10:37 2002
++++ axel-1.0a.new/conf.c       Sun Mar 23 14:26:22 2003
+@@ -148,6 +148,13 @@
+       if( !conf_loadfile( conf, ETCDIR "/axelrc" ) )
+               return( 0 );
+       
++      if( ( s2 = getenv( "CONFIG_DIR" ) ) != NULL )
++      {
++              sprintf( s, "%s/%s", s2, "axelrc" );
++              if( !conf_loadfile( conf, s ) )
++                      return( 0 );
++      }
++      else
+       if( ( s2 = getenv( "HOME" ) ) != NULL )
+       {
+               sprintf( s, "%s/%s", s2, ".axelrc" );
This page took 0.089948 seconds and 4 git commands to generate.