--- old/src/os/posix/vm/os_posix.hpp 2017-03-14 12:10:21.409924000 +0100 +++ new/src/os/posix/vm/os_posix.hpp 2017-03-14 12:10:21.188909000 +0100 @@ -100,7 +100,7 @@ // is longer than PATH_MAX. // On success, it will return a pointer to the input buffer. // On error, it will return NULL and set errno. Content of output buffer is undefined. - // On truncation error (output buffer too small), it will return NULL and set errno to EINVAL. + // On truncation error (output buffer too small), it will return NULL and set errno to ENAMETOOLONG. static char* realpath(const char* filename, char* outbuf, size_t outbuflen); };