Ticket #64021: libclamav-others_common.c-O_SYMLINK@Tiger.patch
File libclamav-others_common.c-O_SYMLINK@Tiger.patch, 711 bytes (added by ballapete (Peter "Pete" Dyballa), 3 years ago) |
---|
-
libclamav/others_common.
old new 1499 1499 Plus, we probably don't wan tot follow the link in this case anyways, 1500 1500 so this will check the realpath of the link, and not of the thing the 1501 1501 link points to. */ 1502 #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050) 1503 if(S_ISLNK(*file_name) | S_ISREG(*file_name)) { 1504 fd = open(file_name, O_RDONLY); 1505 } 1506 #else 1502 1507 fd = open(file_name, O_RDONLY | O_SYMLINK); 1508 #endif /* Tiger workaround for missing O_SYMLINK macro */ 1503 1509 if (fd == -1) { 1504 1510 char err[128]; 1505 1511 cli_strerror(errno, err, sizeof(err));