Changeset 35 for trunk/src

Show
Ignore:
Timestamp:
04/28/07 14:50:55 (15 years ago)
Author:
andreu
Message:

Correction bug #1

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/renetcolSender.c

    r30 r35  
    104104        } /* while end */ 
    105105        fclose(ruleFile); 
    106         if (!(tmpFile = fopen("rules.tmp", "w"))) { 
    107           syslog (LOG_ERR, "error during %s opening", "rules.tmp"); 
     106        if (!(tmpFile = fopen(FILE_TEMPO, "w"))) { 
     107          syslog (LOG_ERR, "error during %s opening", FILE_TEMPO); 
    108108          return 1; 
    109109        } else { 
     
    112112          } 
    113113          fclose(tmpFile); 
    114           if (remove("rules.txt")!=0){ 
     114          if (remove(rulesFileName)!=0){ 
    115115            syslog(LOG_ERR, "rules.txt remove pb: %s", strerror(errno)); 
    116116            return 1; 
    117117          } 
    118           if (rename("rules.tmp", "rules.txt")!=0){ 
     118          if (rename(FILE_TEMPO, rulesFileName)!=0){ 
    119119            syslog(LOG_ERR, "rename file pb: %s", strerror(errno)); 
    120120            return 1; 
  • trunk/src/renetcolSender.h

    r28 r35  
    4444#define RECEPT_PORT "52571" 
    4545#define VAR_SHARED_SIZE 4 
     46#define FILE_TEMPO "/tmp/rules.tmp" 
    4647          
    4748typedef union semun