Skip to content

Commit

Permalink
fixup! ostree-repo-libarchive.c: major refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed May 6, 2016
1 parent 7c2116d commit 37c09a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libostree/ostree-repo-libarchive.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ path_relative (const char *src,
/* One issue here is that some archives almost record the pathname as just a
* string and don't need to actually encode parent/child relationships in the
* archive. For us however, this will be important. So we do our best to deal
* with non-conventional paths (but note that we don't try to be sophisticated
* enough to handle e.g. ../ & ./ in the middle of normal dir comps, which
* would probably require a stack). Also important, we relativize the path. */
* with non-conventional paths. We also validate the path at the end to make
* sure there are no illegal components. Also important, we relativize the
* path. */

/* relativize first (and make /../../ --> /) */
while (src[0] == '/')
Expand Down

0 comments on commit 37c09a3

Please sign in to comment.