diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-03-18 19:29:48 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-03-18 19:29:48 +0000 |
commit | 848d9655dd5206e4226d27ca67bb9160d22fbc01 (patch) | |
tree | 795b8d0925923f32ea104a680ce8dbfd5ab5e3d8 /compat_fts.h | |
parent | 7c64338796c6f7baf07e285d1308329e16386469 (diff) | |
download | mandoc-848d9655dd5206e4226d27ca67bb9160d22fbc01.tar.gz mandoc-848d9655dd5206e4226d27ca67bb9160d22fbc01.tar.zst mandoc-848d9655dd5206e4226d27ca67bb9160d22fbc01.zip |
We always use FTS_NOCHDIR, so delete the directory changing code.
This not only simplifies matters, but also helps operating systems
lacking dirfd(3), for example Solaris 10. Solaris dirfd issue
reported by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Diffstat (limited to 'compat_fts.h')
-rw-r--r-- | compat_fts.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compat_fts.h b/compat_fts.h index ce7ee628..426eaac3 100644 --- a/compat_fts.h +++ b/compat_fts.h @@ -40,13 +40,12 @@ typedef struct { struct _ftsent *fts_child; /* linked list of children */ dev_t fts_dev; /* starting device # */ char *fts_path; /* path for this descent */ - int fts_rfd; /* fd for root */ size_t fts_pathlen; /* sizeof(path) */ #define FTS_NOCHDIR 0x0004 /* don't change directories */ #define FTS_PHYSICAL 0x0010 /* physical walk */ #define FTS_XDEV 0x0040 /* don't cross devices */ -#define FTS_OPTIONMASK 0x00ff /* valid user option mask */ +#define FTS_OPTIONMASK 0x0054 /* valid user option mask */ #define FTS_STOP 0x2000 /* (private) unrecoverable error */ int fts_options; /* fts_open options, global flags */ @@ -85,9 +84,6 @@ typedef struct _ftsent { #define FTS_SL 12 /* symbolic link */ unsigned short fts_info; /* user flags for FTSENT structure */ -#define FTS_DONTCHDIR 0x01 /* don't chdir .. to the parent */ - unsigned short fts_flags; /* private flags for FTSENT structure */ - #define FTS_NOINSTR 3 /* no instructions */ #define FTS_SKIP 4 /* discard node */ unsigned short fts_instr; /* fts_set() instructions */ |