+ } else if (ftype == 'l') {
+ char *target = COL("target");
+ if (!target) {
+ fprintf(stderr, "no target for symlink %s\n", path);
+ conf->errors++;
+ return conf->errabort;
+ }
+
+ if (strlen(target) == 0) {
+ IERR("zero length symlink not allowed");
+ }
+
+ if (conf->verbose > 1) {
+ fprintf(stderr, "symlink %s -> %s\n", path, target);
+ }
+ if (symlink(target, path) == -1) {
+ IERR("can't symlink");
+ }
+ } else {
+ fprintf(stderr, "unhandled filetype %c\n", ftype);