IERR("zero length symlink not allowed");
}
- if (conf->verbose > 1) {
- fprintf(stderr, "symlink %s -> %s\n", path, target);
+ if (conf->verbose > 0) {
+ fprintf(stderr, "symlink %s -> %s\n", dest, target);
}
- if (symlink(target, path) == -1) {
+ if (symlink(target, dest) == -1) {
+ perror("symlink failed");
IERR("can't symlink");
}
} else {
}
}
- struct timespec times[2] = { 0 };
+ struct timespec times[2] = { {0}, {0} };
double mtime = strtod(COL("mtime"),NULL);
times[0].tv_nsec = UTIME_OMIT;