]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Remove xstat function pointer member. The way it was used was not
authorJim Meyering <jim@meyering.net>
Sat, 7 Feb 2004 16:00:28 +0000 (16:00 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 7 Feb 2004 16:00:28 +0000 (16:00 +0000)
commitc9736bdff0126ee263c430494ebde01ae594dbfb
tree35dffdb3058f430aa4e2f0c7fbce4516ab3915cd
parenta70f51f2b09f50b975559d388e0fd675b4ce41c9
Remove xstat function pointer member.  The way it was used was not
portable, since some systems (OSF V5.1, Solaris 2.5.1) provide static
inline `stat' and `lstat' functions, thus making the tests of
`xstat == lstat' in copy.c always fail.

(copy_dir): Set `.dereference' member, not .xstat.
(copy_internal): Use `XSTAT (x, ...)' in place of `*(x->xstat) (...)'.
Use `x->dereference == DEREF_NEVER' in place of `x->xstat == lstat'.
(valid_options): Remove now-obsolete FIXME comments.
src/copy.c