~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to archive-tar.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
        } else {
168
168
                if (verbose)
169
169
                        fprintf(stderr, "%.*s\n", path->len, path->buf);
170
 
                if (S_ISDIR(mode) || S_ISDIRLNK(mode)) {
 
170
                if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
171
171
                        *header.typeflag = TYPEFLAG_DIR;
172
172
                        mode = (mode | 0777) & ~tar_umask;
173
173
                } else if (S_ISLNK(mode)) {
280
280
        memcpy(path.buf + baselen, filename, filenamelen);
281
281
        path.len = baselen + filenamelen;
282
282
        path.buf[path.len] = '\0';
283
 
        if (S_ISDIR(mode) || S_ISDIRLNK(mode)) {
 
283
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
284
284
                strbuf_append_string(&path, "/");
285
285
                buffer = NULL;
286
286
                size = 0;