Subject: Re: bug#17035: [PATCH] chmod -c -R produces errors with special permissions

From: Bernhard Voelker <[email-masked]>
Date: Tue, 18 Mar 2014 23:33:39 +0100

On 03/18/2014 07:45 PM, Pádraig Brady wrote:
> @@ -121,7 +121,7 @@ mode_changed (int dirfd, char const *file, char const *file_full_name,
> 
>        struct stat new_stats;
> 
> -      if (fstatat (dirfd, file, &new_stats, 0) != 0)
> +      if (fstatat (dir_fd, file, &new_stats, 0) != 0)
>          {
>            if (! force_silent)
>              error (0, errno, _("getting new attributes of %s"), quote (file_full_name));

Another minor nit: the last line doesn't pass sc_long_lines:

  $ make syntax-check
  ...
  src/chmod.c:127:            error (0, errno, _("getting new attributes of %s"), quote (file_full_name));
  maint.mk: line(s) with more than 80 characters; reindent

Thanks & have a nice day,
Berny