Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > How about this instead: > > - mkdir(filename, 0777); > - if (adjust_shared_perm(filename)) > + if (!mkdir(filename, 0777) && adjust_shared_perm(filename)) { > + *dir = '/'; > return -2; > + } Not really. See the comment above the code you just touched. - 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