Ralf Ebert wrote: > this code is inside a loop that goes up in the directory hierarchy. > So cwd[offset] = '\0' does not only happen once before dying. I hope not, since then the returned cwd value would be useless for restoring the original cwd later. Shameless plug: you may find the version in commit 98937be (i.e. branch jn/maint-setup-fix in pu) more readable. :) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html