/[graveman]/graveman/current/src/config.c
ViewVC logotype

Diff of /graveman/current/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by scresto, Thu Apr 14 21:45:32 2005 UTC revision 1.32 by scresto, Thu Apr 14 21:56:32 2005 UTC
# Line 173  gboolean write_conf(GError **Aerror) Line 173  gboolean write_conf(GError **Aerror)
173    FILE *Lfic;    FILE *Lfic;
174    gchar *Ltmp;    gchar *Ltmp;
175    if (!get_config_file(W_OK)) return FALSE;    if (!get_config_file(W_OK)) return FALSE;
176    g_warning("le conf => %s\n", Gfileconf);
177    if (!(Lfic=fopen(Gfileconf, "w"))) {    if (!(Lfic=fopen(Gfileconf, "w"))) {
178      Ltmp = g_strdup_printf(_("Cannot create %s: %s"), Gfileconf, g_strerror(errno));      Ltmp = g_strdup_printf(_("Cannot create %s: %s"), Gfileconf, g_strerror(errno));
179      g_set_error(Aerror, G_FILE_ERROR, g_file_error_from_errno(errno), Ltmp, g_strerror(errno));      g_set_error(Aerror, G_FILE_ERROR, g_file_error_from_errno(errno), Ltmp, g_strerror(errno));
# Line 231  GSList *get_config_path() Line 231  GSList *get_config_path()
231    
232    /* parametre -c sur la ligne de commande */    /* parametre -c sur la ligne de commande */
233    if ((Lpath = param_get_string("config_file"))) {    if ((Lpath = param_get_string("config_file"))) {
234      Llistpath = g_strsplit(Lenv, ":", 0);      Llistpath = g_strsplit(Lpath, ":", 0);
235    
236      for (i=0; Llistpath[i]; i++) {      for (i=0; Llistpath[i]; i++) {
237        if (!*Llistpath[i]) continue; /* on ignore les entrees vides */        if (!*Llistpath[i]) continue; /* on ignore les entrees vides */

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26