this repo has no description
1
fork

Configure Feed

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

Merge branch 'master' of github.com:darlinghq/darling 'darling-mach kernel module' isn't as brief as 'kernel module'

+9 -6
+9 -6
src/dyld/darling.c
··· 850 850 // Ubuntu overrides our dkms.conf and forces the modules into the updates folder 851 851 char miscpath[128], updatespath[128]; 852 852 char* path; 853 + int errno_updatespath; 853 854 struct utsname name; 854 855 855 856 if (isModuleLoaded()) ··· 864 865 { 865 866 path = updatespath; 866 867 } 867 - else if (access(miscpath, F_OK)) 868 + else if (errno_updatespath = errno, access(miscpath, F_OK) == 0) 868 869 { 869 - fprintf(stderr, "Cannot find kernel module at %s: %s\n", path, strerror(errno)); 870 - return 1; 870 + path = miscpath; 871 871 } 872 872 else 873 873 { 874 - path = miscpath; 874 + fprintf(stderr, "Cannot find the darling-mach kernel module at %s: %s\n", updatespath, strerror(errno_updatespath)); 875 + fprintf(stderr, "Cannot find the darling-mach kernel module at %s: %s\n", miscpath, strerror(errno)); 876 + return 1; 875 877 } 876 878 877 879 fd = open(path, O_RDONLY); 878 880 if (fd < 0) 879 881 { 880 - fprintf(stderr, "Cannot open kernel module\n"); 882 + fprintf(stderr, "Cannot open the darling-mach kernel module at %s: %s\n", path, strerror(errno)); 881 883 return 1; 882 884 } 883 885 884 886 if (syscall(SYS_finit_module, fd, "", 0)) 885 887 { 886 - fprintf(stderr, "Cannot load kernel module: %s\n", strerror(errno)); 888 + fprintf(stderr, "Cannot load the darling-mach kernel module: %s\n", strerror(errno)); 887 889 return 1; 888 890 } 889 891 890 892 fprintf(stderr, "Loaded kernel module: %s\n", path); 893 + 891 894 892 895 close(fd); 893 896