if (deref_stat (dereference_option, name_buffer, &stat_data))
{
- dir_removed_diag (name_buffer, false, stat_diag);
- /* FIXME: used to be
- children = CHANGED_CHILDREN;
- but changed to: */
+ dir_removed_diag (name_buffer, cmdline, stat_diag);
free (name_buffer);
free (dirp);
return NULL;
{
if (deref_stat (dereference_option, name_buffer, &stat_data))
{
- stat_diag (name_buffer);
+ file_removed_diag (name_buffer, false, stat_diag);
*entry = 'N';
continue;
}
return;
}
+ /* Consume the first name from the name list and reset the
+ list afterwards. This is done to change to the new
+ directory, if the first name is a chdir request (-C dir),
+ which is necessary to recreate absolute file names. */
+ name_from_list ();
+ blank_name_list ();
+
if (0 < getline (&buf, &bufsize, listed_incremental_stream))
{
char *ebuf;