* src/chown-core.c: Include "ignore-value.h".
(change_file_owner): Don't set "ent" only to ignore it.
* src/chcon.c (process_file): Likewise.
* src/chmod.c: Include "ignore-value.h".
(process_file): Don't set "ent" only to ignore it.
After diagnosing root-dev/ino failure, return false immediately:
Now that we don't set "ent" we must be sure not to use it uninitialized,
and there's no point in issuing --verbose-related output in this case.
#include "system.h"
#include "dev-ino.h"
#include "error.h"
+#include "ignore-value.h"
#include "quote.h"
#include "quotearg.h"
#include "root-dev-ino.h"
/* Tell fts not to traverse into this hierarchy. */
fts_set (fts, ent, FTS_SKIP);
/* Ensure that we do not process "/" on the second visit. */
- ent = fts_read (fts);
+ ignore_ptr (fts_read (fts));
return false;
}
return true;
#include "dev-ino.h"
#include "error.h"
#include "filemode.h"
+#include "ignore-value.h"
#include "modechange.h"
#include "quote.h"
#include "quotearg.h"
/* Tell fts not to traverse into this hierarchy. */
fts_set (fts, ent, FTS_SKIP);
/* Ensure that we do not process "/" on the second visit. */
- ent = fts_read (fts);
- ok = false;
+ ignore_ptr (fts_read (fts));
+ return false;
}
if (ok)
#include "system.h"
#include "chown-core.h"
#include "error.h"
+#include "ignore-value.h"
#include "quote.h"
#include "root-dev-ino.h"
#include "xfts.h"
/* Tell fts not to traverse into this hierarchy. */
fts_set (fts, ent, FTS_SKIP);
/* Ensure that we do not process "/" on the second visit. */
- ent = fts_read (fts);
+ ignore_ptr (fts_read (fts));
return false;
}
return true;