Ignore:
Timestamp:
Feb 7, 2007, 11:55:11 PM (13 years ago)
Author:
bruno
Message:

merge -r1082:1105 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/mondoarchive/main.c

    r1086 r1106  
    1515#include <stdio.h>
    1616#include <stdlib.h>
     17#include <sys/types.h>
     18#include <sys/stat.h>
     19#include <unistd.h>
     20
    1721#include "my-stuff.h"
    1822#include "../common/mondostructures.h"
     
    2125
    2226#include "mr_mem.h"
     27#include "mr_str.h"
     28#include "mr_file.h"
    2329
    2430// for CVS
     
    124130}
    125131
    126 /* Return a string containing the date */
    127 char *mr_date(void) {
    128    
    129     time_t tcurr;
    130 
    131     tcurr = time(NULL);
    132     return(ctime(&tcurr));
    133 }
    134 
    135132/*-----------------------------------------------------------*/
    136133
     
    144141{
    145142    struct s_bkpinfo *bkpinfo;
     143    struct stat stbuf;
    146144    char *tmp;
    147145    int res = 0;
     
    192190    setenv("ARCH", get_architecture(), 1);
    193191
    194     /* Add MONDO_SHARE environment variable for mindi */
     192    /* Add MONDO_SHARE + others environment variable for mindi */
    195193    setenv_mondo_share();
     194
     195    if (stat(MONDO_CACHE, &stbuf) != 0) {
     196        mr_mkdir(MONDO_CACHE,0x755);
     197    }
    196198
    197199    /* Configure the bkpinfo structure, global file paths, etc. */
Note: See TracChangeset for help on using the changeset viewer.