|
Lines 162-168
Link Here
|
| 162 |
} |
162 |
} |
| 163 |
|
163 |
|
| 164 |
/* If the source is a directory, append the target's name. */ |
164 |
/* If the source is a directory, append the target's name. */ |
| 165 |
if (isdir || ((exists = !stat(source, &sb)) && S_ISDIR(sb.st_mode))) { |
165 |
if ((isdir || ((exists = !stat(source, &sb)) && S_ISDIR(sb.st_mode))) |
|
|
166 |
&& !(!lstat(source, &sb) && S_ISLNK(sb.st_mode))) { |
| 166 |
if ((p = strrchr(target, '/')) == NULL) |
167 |
if ((p = strrchr(target, '/')) == NULL) |
| 167 |
p = target; |
168 |
p = target; |
| 168 |
else |
169 |
else |