]> git.pld-linux.org Git - packages/links2.git/blob - links2-config-dirs.patch
- fix for segfault on x86_64
[packages/links2.git] / links2-config-dirs.patch
1 --- links-2.1pre16/default.c.orig       2005-01-22 21:51:53.000000000 +0100
2 +++ links-2.1pre16/default.c    2005-01-28 20:47:14.138719472 +0100
3 @@ -312,10 +312,10 @@
4                         sleep(3);
5                         mem_free(home_links);
6                         home_links = stracpy(home);
7 -                       add_to_strn(&home_links, ".links");             
8 +                       add_to_strn(&home_links, ".links2");            
9                 }
10                 mem_free(config_dir);
11 -       } else add_to_strn(&home_links, ".links");
12 +       } else add_to_strn(&home_links, ".links2");
13         if (stat(home_links, &st)) {
14  #ifdef HAVE_MKDIR
15                 if (!mkdir(home_links, 0777)) goto home_creat;
16 @@ -327,7 +327,7 @@
17         first_failed:
18         mem_free(home_links);
19         home_links = stracpy(home);
20 -       add_to_strn(&home_links, "links");
21 +       add_to_strn(&home_links, "links2");
22         if (stat(home_links, &st)) {
23  #ifdef HAVE_MKDIR
24                 if (!mkdir(home_links, 0777)) goto home_creat;
25 @@ -390,7 +390,7 @@
26  void load_config(void)
27  {
28  #ifdef SHARED_CONFIG_DIR
29 -       load_config_file(SHARED_CONFIG_DIR, "links.cfg");
30 +       load_config_file(SHARED_CONFIG_DIR, "links2/links.cfg");
31  #endif
32         load_config_file(links_home, "links.cfg");
33         load_config_file(links_home, "html.cfg");
34 --- links-2.1pre16/links.1.orig 2005-01-22 21:51:55.000000000 +0100
35 +++ links-2.1pre16/links.1      2005-01-28 20:47:50.217234704 +0100
36 @@ -303,7 +303,7 @@
37  
38  .SH FILES
39  .TP
40 -.IP "~/.links/links.cfg"
41 +.IP "~/.links2/links.cfg"
42  Per-user configfile, automatically created by
43  .B links.
44  .SH PLATFORMS
This page took 0.108117 seconds and 3 git commands to generate.