]> git.pld-linux.org Git - packages/freenet6-client.git/blob - freenet6-client-paths.patch
- rel 2
[packages/freenet6-client.git] / freenet6-client-paths.patch
1 --- freenet6-client-1.0/src/tspc.c.orig 2003-09-28 15:42:46.000000000 +0200
2 +++ freenet6-client-1.0/src/tspc.c      2003-09-28 16:07:29.000000000 +0200
3 @@ -56,7 +56,8 @@
4  
5  char *FileName  = "tspc.conf";
6  char *LogFile   = "tspc.log";
7 -char *ScriptDir = NULL;
8 +char *ScriptDir = "/usr/share/tspc";
9 +char *FScriptDir = "/usr/share/tspc";
10  char *LogFileName = NULL;
11  tConf Conf;
12  tTunnel t;
13 @@ -73,7 +74,7 @@
14     int  RootUid = 0;
15  #  define ScriptExtension "bat"
16  #else
17 -   char *TspHomeDir  = "/usr/local/etc/tsp";
18 +   char *TspHomeDir  = "/etc/tsp";
19     char DirSeparator = '/';
20     int  RootUid = 0;
21  #  define ScriptInterpretor "/bin/sh "
22 @@ -640,9 +641,9 @@
23    SetEnv("TSP_HOME_DIR",          TspHomeDir, 1);
24  
25  #ifdef WIN32
26 -  snprintf(buf, sizeof buf, "%s%c%s.%s", ScriptDir, DirSeparator, Conf.template, ScriptExtension);
27 +  snprintf(buf, sizeof buf, "%s%c%s.%s", FScriptDir, DirSeparator, Conf.template, ScriptExtension);
28  #else
29 -  snprintf(buf, sizeof buf, "%s %s%c%s.%s", ScriptInterpretor, ScriptDir, DirSeparator, Conf.template, ScriptExtension);
30 +  snprintf(buf, sizeof buf, "%s %s%c%s.%s", ScriptInterpretor, FScriptDir, DirSeparator, Conf.template, ScriptExtension);
31  #endif
32  
33    Display(2, ELInfo, "SetUpInterface", "Executing configuration script.\n");
34 @@ -755,7 +756,7 @@
35  {
36    int status=1;
37  
38 -  LogInit("TSPClient", LogFile);  
39 +  LogInit("TSPClient", "/var/log/tspc-client");  
40    Display(1,ELInfo, "main", "----- TSP Client Version %s Initializing -------------------------", TSP_VERSION);
41  
42    if((status = Initialise(argc, argv, &Conf)) != 0)
This page took 0.10252 seconds and 3 git commands to generate.