]> git.pld-linux.org Git - packages/axel.git/blame - axel-etc_dir.patch
- updated gettext BR
[packages/axel.git] / axel-etc_dir.patch
CommitLineData
a7b2ef73 1diff -Nru axel-1.0a/conf.c axel-1.0a.new/conf.c
2--- axel-1.0a/conf.c Tue Feb 19 18:10:37 2002
3+++ axel-1.0a.new/conf.c Sun Mar 23 14:26:22 2003
4@@ -148,6 +148,13 @@
5 if( !conf_loadfile( conf, ETCDIR "/axelrc" ) )
6 return( 0 );
7
8+ if( ( s2 = getenv( "ETC_DIR" ) ) != NULL )
9+ {
10+ sprintf( s, "%s/%s", s2, "axelrc" );
11+ if( !conf_loadfile( conf, s ) )
12+ return( 0 );
13+ }
14+ else
15 if( ( s2 = getenv( "HOME" ) ) != NULL )
16 {
17 sprintf( s, "%s/%s", s2, ".axelrc" );
This page took 0.531184 seconds and 4 git commands to generate.