Re: [PATCH] archive-tar: split long paths more carefully From: Jonathan Nieder <hidden> Date: 2016-06-15 22:55:39 René Scharfe wrote: quoted hunk ↗ jump to hunk--- a/archive-tar.c +++ b/archive-tar.c@@ -153,6 +153,8 @@ static unsigned int ustar_header_chksum(const struct ustar_header *header) static size_t get_path_prefix(const char *path, size_t pathlen, size_t maxlen) { size_t i = pathlen; + if (i > 1 && path[i - 1] == '/') + i--; Beautiful.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help