this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix #705

+9 -2
+9 -2
src/kernel/emulation/linux/vchroot_userspace.c
··· 38 38 # include "stat/common.h" 39 39 # include "dirent/getdirentries.h" 40 40 # include "common_at.h" 41 + #include <stddef.h> 42 + 41 43 typedef struct linux_stat stat_t; 42 44 45 + struct _xlocale; 46 + typedef struct _xlocale* locale_t; 47 + 48 + #define LC_C_LOCALE ((locale_t)NULL) 49 + 43 50 extern __SIZE_TYPE__ strlen(const char* s); 44 51 extern char* strcpy(char* dest, const char* src); 45 52 extern int strcmp(const char* str1, const char* str2); 46 53 extern int strncmp(const char* str1, const char* str2, __SIZE_TYPE__ n); 47 - extern int strncasecmp(const char* str1, const char* str2, __SIZE_TYPE__ n); 54 + extern int strncasecmp_l(const char* str1, const char* str2, __SIZE_TYPE__ n, locale_t locale); 48 55 extern int strcasecmp(const char* str1, const char* str2); 49 56 extern char* strcat(char* dest, const char* src); 50 57 extern char *strchr(const char *s, int c); ··· 431 438 432 439 if (ctxt->current_root_len > 0 && ctxt->current_path_len - ctxt->current_root_len == sizeof(EXIT_PATH)-1) 433 440 { 434 - if (strncasecmp(ctxt->current_path + ctxt->current_root_len, EXIT_PATH, sizeof(EXIT_PATH) - 1) == 0) 441 + if (strncasecmp_l(ctxt->current_path + ctxt->current_root_len, EXIT_PATH, sizeof(EXIT_PATH) - 1, LC_C_LOCALE) == 0) 435 442 { 436 443 // Switch to the real system root 437 444 ctxt->current_path[0] = '\0';