diff options
-rw-r--r-- | src/chcon.c | 3 | ||||
-rw-r--r-- | src/chmod.c | 5 | ||||
-rw-r--r-- | src/chown-core.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/chcon.c b/src/chcon.c index 266260066..531ed7a0d 100644 --- a/src/chcon.c +++ b/src/chcon.c @@ -22,6 +22,7 @@ #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" @@ -225,7 +226,7 @@ process_file (FTS *fts, FTSENT *ent) /* 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; diff --git a/src/chmod.c b/src/chmod.c index 0e39c8b01..aeefcc65a 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -25,6 +25,7 @@ #include "dev-ino.h" #include "error.h" #include "filemode.h" +#include "ignore-value.h" #include "modechange.h" #include "quote.h" #include "quotearg.h" @@ -238,8 +239,8 @@ process_file (FTS *fts, FTSENT *ent) /* 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) diff --git a/src/chown-core.c b/src/chown-core.c index 7e5774ee1..eb349049e 100644 --- a/src/chown-core.c +++ b/src/chown-core.c @@ -25,6 +25,7 @@ #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" @@ -270,7 +271,7 @@ change_file_owner (FTS *fts, FTSENT *ent, /* 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; |