~mterry/duplicity/guard-tarinfo

« back to all changes in this revision

Viewing changes to duplicity/tarfile.py

  • Committer: Michael Terry
  • Date: 2011-06-23 15:47:44 UTC
  • Revision ID: michael.terry@canonical.com-20110623154744-mnvcs1ks5qn5yve3
also guard the recursive call

Show diffs side-by-side

added added

removed removed

Lines of Context:
1113
1113
        tarinfo = self._buftoinfo(buf)
1114
1114
        if tarinfo.type in (GNUTYPE_LONGLINK, GNUTYPE_LONGNAME):
1115
1115
            tarinfo = self._proc_gnulong(tarinfo, tarinfo.type)
 
1116
            if not tarinfo: return None
1116
1117
        if name is not None:
1117
1118
            tarinfo.name = name
1118
1119
        if linkname is not None: