> I noticed that chmod.c have uninitialized variable char *ep that was > used. This diff clarify what I mean.
It might be a good idea to take a careful look at the man page of strtoul(3). Pay attention to what it does with errno and endptr. Also, take a look at the example.