- Timestamp:
- Dec 21, 2005, 10:07:54 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_calls.c
r1 r3 138 138 int sh_calls_set_bind_addr (char * str) 139 139 { 140 static int reject = 0; 141 142 if (reject == 1) 143 return (0); 144 145 if (sh.flag.opts == S_TRUE) 146 reject = 1; 147 140 148 if (0 == /*@-unrecog@*/inet_aton(str, &bind_addr)/*@+unrecog@*/) 141 149 { -
trunk/src/sh_database.c
r1 r3 38 38 #include "sh_error.h" 39 39 #include "sh_utils.h" 40 41 extern int safe_logger (int signal, int method, pid_t thepid); 40 42 41 43 #undef FIL__ … … 1009 1011 { 1010 1012 int status = 0; 1011 c har* p;1013 const char * p; 1012 1014 static MYSQL * db_conn = NULL; 1013 1015 static SH_TIMEOUT sh_timer = { 0, 3600, S_TRUE }; … … 1447 1449 retv = S_FALSE; 1448 1450 } 1451 else if (*p == '\"' && escp == 0) 1452 { 1453 retv = S_FALSE; 1454 } 1449 1455 else 1450 1456 { … … 1453 1459 ++p; 1454 1460 } 1461 if (escp == 1) 1462 retv = S_FALSE; 1455 1463 return retv; 1456 1464 } … … 1546 1554 1547 1555 if (S_FALSE == is_escaped(&p[j+2])) { 1556 sh_error_handle((-1), FIL__, __LINE__, 0, MSG_E_SUBGEN, 1557 _("Message not properly escaped"), 1558 _("sh_database_parse")); 1548 1559 SL_RETURN(NULL, _("sh_database_parse")); 1549 1560 } -
trunk/src/sh_forward.c
r1 r3 1944 1944 SL_RET0(_("free_client")); 1945 1945 } 1946 1947 extern int safe_logger (int signal, int method, pid_t thepid); 1946 1948 1947 1949 int sh_forward_register_client (char * str) -
trunk/src/sh_hash.c
r1 r3 653 653 { 654 654 sh_file_t * p; 655 sh_file_t * q; 655 656 int key; 656 657 … … 674 675 strlen(s->fullpath) == strlen(p->fullpath)) 675 676 { 676 SH_FREE(s->fullpath); 677 if(s->linkpath) 678 SH_FREE(s->linkpath); 677 q = p->next; 678 SH_FREE(p->fullpath); 679 if(p->linkpath) 680 SH_FREE(p->linkpath); 681 memcpy(p, s, sizeof(sh_file_t)); 682 p->next = q; 679 683 SH_FREE(s); 680 684 s = NULL; -
trunk/src/sh_kern.c
r1 r3 859 859 * Stored(old) is system_call_code[] 860 860 */ 861 if (sh.flag.checkSum == SH_CHECK_INIT )861 if (sh.flag.checkSum == SH_CHECK_INIT || sh.flag.update == S_TRUE) 862 862 { 863 863 store0 = 0; store1 = 0; store2 = 0; … … 935 935 * Stored(old) is sh_syscalls[] array. 936 936 */ 937 if (sh.flag.checkSum == SH_CHECK_INIT )937 if (sh.flag.checkSum == SH_CHECK_INIT || sh.flag.update == S_TRUE) 938 938 { 939 939 for (i = 0; i < SH_MAXCALLS; ++i) … … 1125 1125 if (ShKernIDT == S_TRUE) 1126 1126 { 1127 if (sh.flag.checkSum == SH_CHECK_INIT )1127 if (sh.flag.checkSum == SH_CHECK_INIT || sh.flag.update == S_TRUE) 1128 1128 { 1129 1129 datasize = 8; … … 1447 1447 * Stored(old) is sh_syscalls[] array. 1448 1448 */ 1449 if (sh.flag.checkSum == SH_CHECK_INIT )1449 if (sh.flag.checkSum == SH_CHECK_INIT || sh.flag.update == S_TRUE) 1450 1450 { 1451 1451 for (i = 0; i < SH_MAXCALLS; ++i)
Note:
See TracChangeset
for help on using the changeset viewer.