Changeset 277 for trunk/src


Ignore:
Timestamp:
Mar 22, 2010, 9:02:38 PM (15 years ago)
Author:
katerina
Message:

Fix for bug in kernel check (ticket #198).

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_kern.c

    r252 r277  
    658658                             sizeof(proc_root_dir)))
    659659        status = -7;
     660    }
     661/* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */
     662#if SH_KERNEL_NUMBER < 132629
     663  if(status == 0)
     664    {
    660665      if (sh_kern_read_data (kd, proc_root_iops,
    661666                             (unsigned char *) &proc_root_inode,
     
    663668        status = -8;
    664669    }
     670#else
     671  memset(&proc_root_inode, '\0', sizeof(proc_root_inode));
     672#endif
    665673 
    666674  /*
  • trunk/src/sh_log_check.c

    r276 r277  
    896896      status = (int) sh_string_read(s, logfile->fp, 8192);
    897897
    898       fprintf(stderr, "FIXME: %s\n", sh_string_str(s));
     898      /* fprintf(stderr, "FIXME: %s\n", sh_string_str(s)); */
    899899
    900900      /* restore old signal handler
Note: See TracChangeset for help on using the changeset viewer.