[PATCH STABLE] chg: initialize sockdirfd to -1 instead of AT_FDCWD

Sean Farley sean at farley.io
Tue Apr 26 13:46:29 EDT 2016


Yuya Nishihara <yuya at tcha.org> writes:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1461501330 -32400
> #      Sun Apr 24 21:35:30 2016 +0900
> # Branch stable
> # Node ID a1aae7b04aebd5b1e279aa17eadc87c9fec50aa2
> # Parent  38292b227debf6393dc1e2c6ff886f85f6673646
> chg: initialize sockdirfd to -1 instead of AT_FDCWD
>
> As we don't use sockdirfd yet, this is the simplest workaround to compile chg
> on old Unices where AT_FDCWD does not exist. Foozy pointed out Mac OS X 10.10
> is required for AT_FDCWD as well as xxxat() functions.

Sure, seems fine to me.


More information about the Mercurial-devel mailing list