Ignore:
Timestamp:
Jun 19, 2011, 2:13:48 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Revert bad changes made accidentaly on the 2.2.8 branch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/common/libmondo-fork.c

    r2807 r2833  
    33
    44- subroutines for handling forking/pthreads/etc.
     5
     6
     701/20/2006
     8- replaced partimagehack with ntfsclone
     9
     1006/20/2004
     11- create fifo /var/log/partimagehack-debug.log and empty it
     12  to keep ramdisk from filling up
     13
     1404/13/2004
     15- >= should be <= g_loglevel
     16
     1711/15/2003
     18- changed a few []s to char*s
     19 
     2010/12
     21- rewrote partimagehack handling (multiple fifos, chunks, etc.)
     22
     2310/11
     24- partimagehack now has debug level of N (set in my-stuff.h)
     25
     2610/08
     27- call to partimagehack when restoring will now log errors to /var/log/....log
     28
     2910/06
     30- cleaned up logging a bit
     31
     3209/30
     33- line 735 - missing char* cmd in sprintf()
     34
     3509/28
     36- added run_external_binary_with_percentage_indicator()
     37- rewritten eval_call_to_make_ISO()
     38
     3909/18
     40- call mkstemp instead of mktemp
     41
     4209/13
     43- major NTFS hackage
     44
     4509/12
     46- paranoid_system("rm -f /tmp/ *PARTIMAGE*") before calling partimagehack
     47
     4809/11
     49- forward-ported unbroken feed_*_partimage() subroutines
     50  from early August 2003
     51
     5209/08
     53- detect & use partimagehack if it exists
     54
     5509/05
     56- finally finished partimagehack hack :)
     57
     5807/04
     59- added subroutines to wrap around partimagehack
     60
     6104/27
     62- don't echo (...res=%d...) at end of log_it()
     63  unnecessarily
     64- replace newtFinished() and newtInit() with
     65  newtSuspend() and newtResume()
     66
     6704/24
     68- added some assert()'s and log_OS_error()'s
     69
     7004/09
     71- cleaned up run_program_and_log_output()
     72
     7304/07
     74- cleaned up code a bit
     75- let run_program_and_log_output() accept -1 (only log if _no error_)
     76
     7701/02/2003
     78- in eval_call_to_make_ISO(), append output to MONDO_LOGFILE
     79  instead of a temporary stderr text file
     80
     8112/10
     82- patch by Heiko Schlittermann to handle % chars in issue.net
     83
     8411/18
     85- if mkisofs in eval_call_to_make_ISO() returns an error then return it,
     86  whether ISO was created or not
     87
     8810/30
     89- if mkisofs in eval_call_to_make_ISO() returns an error then find out if
     90  the output (ISO) file has been created; if it has then return 0 anyway
     91
     9208/01 - 09/30
     93- run_program_and_log_output() now takes boolean operator to specify
     94  whether it will log its activities in the event of _success_
     95- system() now includes 2>/dev/null
     96- enlarged some tmp[]'s
     97- added run_program_and_log_to_screen() and run_program_and_log_output()
     98
     9907/24
     100- created
    5101*/
    6102
     
    458554    FILE *fout;
    459555    FILE *ftmp;
    460     int tmpcap = 512;
    461556
    462557    log_msg(5, "Opening.");
    463     if (!(tmp = malloc(tmpcap))) {
    464         fatal_error("Failed to malloc() tmp");
    465     }
     558    malloc_string(tmp);
    466559    tmp[0] = '\0';
    467560    bufcap = 256L * 1024L;
     
    563656                sprintf(tmp, "I am here - %lld", (long long)ftello(fin));
    564657//    log_msg(0, tmp);
    565                 fread(tmp, 1, tmpcap, fin);
     658                fread(tmp, 1, 512, fin);
    566659                log_msg(0, "tmp = '%s'", tmp);
    567                 fwrite(tmp, 1, tmpcap, ftmp);
     660                fwrite(tmp, 1, 512, ftmp);
    568661                fclose(ftmp);
    569662                fatal_error("Missing terminating block");
Note: See TracChangeset for help on using the changeset viewer.