|
Lines 989-995
Link Here
|
| 989 |
else if (S_ISREG(sb.st_mode)) { |
989 |
else if (S_ISREG(sb.st_mode)) { |
| 990 |
/* Race-free rename of regular files */ |
990 |
/* Race-free rename of regular files */ |
| 991 |
if (link(oldpath, newpath) == -1) { |
991 |
if (link(oldpath, newpath) == -1) { |
| 992 |
if (errno == EOPNOTSUPP |
992 |
if (errno == EOPNOTSUPP || errno = EXDEV |
| 993 |
#ifdef LINK_OPNOTSUPP_ERRNO |
993 |
#ifdef LINK_OPNOTSUPP_ERRNO |
| 994 |
|| errno == LINK_OPNOTSUPP_ERRNO |
994 |
|| errno == LINK_OPNOTSUPP_ERRNO |
| 995 |
#endif |
995 |
#endif |