its clients accordingly -- note that du.c uses fts but doesn't need
any adjustment, since it doesn't operate on the actual files,
but rather just uses the stat buffers provided by fts.
Include "openat.h".
(process_file): Use chmodat (fts->fts_cwd_fd,... in place of chmod (...
#include "error.h"
#include "filemode.h"
#include "modechange.h"
+#include "openat.h"
#include "quote.h"
#include "quotearg.h"
#include "root-dev-ino.h"
if (! S_ISLNK (old_mode))
{
- if (chmod (file, new_mode) == 0)
+ if (chmodat (fts->fts_cwd_fd, file, new_mode) == 0)
chmod_succeeded = true;
else
{