* src/selinux.c: Don't include the system "fts.h" as
that disallows _FILE_OFFSET_BITS=64 which gnulib auto enables
to support large files on 32 bit systems. Instead include
our "xfts.h" which includes the less limited gnulib replacement,
and also a checked version of xfts_open().
(restorecon): Use the checked xfts_open() rather than the standard
fts_open().
Prompted by the continuous integration build failure at:
http://hydra.nixos.org/build/
6934169
#include "system.h"
#include "canonicalize.h"
#include "dosname.h"
-#include "fts.h"
+#include "xfts.h"
#include "quote.h"
#include "selinux.h"
return ok;
}
- fts = fts_open ((char *const *) ftspath, FTS_PHYSICAL, NULL);
+ fts = xfts_open ((char *const *) ftspath, FTS_PHYSICAL, NULL);
while (1)
{
FTSENT *ent;
{
if (errno != 0)
{
- /* FIXME: try to give a better message */
error (0, errno, _("fts_read failed"));
ok = false;
}