changeset 28854 | ddef14468952 |
parent 28788 | 57a78a64de44 |
child 28855 | f5764e177bbe |
--- a/contrib/chg/util.c Sun Apr 10 22:58:11 2016 +0100 +++ b/contrib/chg/util.c Sun Apr 10 03:14:32 2016 +0100 @@ -84,6 +84,13 @@ va_end(args); } +void fchdirx(int dirfd) +{ + int r = fchdir(dirfd); + if (r == -1) + abortmsgerrno("failed to fchdir"); +} + void *mallocx(size_t size) { void *result = malloc(size);