orig_basename being a link or a regular file