if (alarmed)
return -1;
+ /* This currently doesn't work with "." */
+ if (strcmp(path, ".") == 0) {
+ ERROR("\".\" not supported");
+ }
const char *dir = strrchr(path, '/');
if (dir == NULL)
dir = path;
struct adouble ad;
struct stat st;
- if (stat(to.p_path, &st) != 0) {
+ if (lstat(to.p_path, &st) != 0) {
badcp = rval = 1;
break;
}
struct adouble ad;
struct stat st;
- if (stat(to.p_path, &st) != 0) {
+ if (lstat(to.p_path, &st) != 0) {
badcp = rval = 1;
break;
}