Andreas Grünbacher wrote:
+ if (__lxstat64 (_STAT_VER, tmpl, &st) < 0) + { + if (errno == ENOENT) + return 0; + } + else + __set_errno (EEXIST); + return -1;
Thanks, one further suggestion. The above can be simplified to: if (__lxstat64 (_STAT_VER, tmpl, &st) == 0) __set_errno (EEXIST); return errno == ENOENT ? 0 : -1; Other than that it looks good, and please install.