CVS update: /ccvs/lib/
[email protected] 24 May 2005 21:05:40 -0000
| Newsgroups | gmane.comp.version-control.cvs.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dprice Date: 05/05/24 14:05:40 Modified: /ccvs/lib/ ChangeLog, stat.c, system.h Log: * stat.c: Use system stat & lstat functions in this file. * system.h (CVS_STAT, CVS_LSTAT): Remove these macros. File Changes: Directory: /ccvs/lib/ ===================== File [changed]: ChangeLog Url: https://ccvs.cvshome.org/source/browse/ccvs/lib/ChangeLog?r1=1.437&r2=1.438 Delta lines: +5 -0 ------------------- --- ChangeLog 24 May 2005 20:11:29 -0000 1.437 +++ ChangeLog 24 May 2005 21:05:37 -0000 1.438 @@ -1,5 +1,10 @@ 2005-05-24 Derek Price <[email protected]> + * stat.c: Use system stat & lstat functions in this file. + * system.h (CVS_STAT, CVS_LSTAT): Remove these macros. + +2005-05-24 Derek Price <[email protected]> + * Makefile.am (BUILT_SOURCES, EXTRA_DIST, MAINTAINERCLEANFILES): Add getdate.c due to automake bug. File [changed]: stat.c Url: https://ccvs.cvshome.org/source/browse/ccvs/lib/stat.c?r1=1.6&r2=1.7 Delta lines: +4 -0 ------------------- --- stat.c 23 May 2005 17:44:32 -0000 1.6 +++ stat.c 24 May 2005 21:05:37 -0000 1.7 @@ -24,6 +24,10 @@ #include <config.h> +/* Get the system versions of stat and lstat. */ +#undef lstat +#undef stat + #include <sys/types.h> #include <sys/stat.h> #include <errno.h> File [changed]: system.h Url: https://ccvs.cvshome.org/source/browse/ccvs/lib/system.h?r1=1.75&r2=1.76 Delta lines: +0 -27 -------------------- --- system.h 9 Feb 2005 05:03:11 -0000 1.75 +++ system.h 24 May 2005 21:05:37 -0000 1.76 @@ -442,33 +442,6 @@ # define CVS_RMDIR rmdir #endif -#ifndef CVS_STAT -/* Use the function from lib/stat.c when the system version is broken. - */ -# ifdef HAVE_STAT_EMPTY_STRING_BUG -# define CVS_STAT rpl_stat -# else /* !HAVE_STAT_EMPTY_STRING_BUG */ -# define CVS_STAT stat -# endif /* HAVE_STAT_EMPTY_STRING_BUG */ -#endif - -/* Open question: should CVS_STAT be lstat by default? We need - to use lstat in order to handle symbolic links correctly with - the PreservePermissions option. -twp */ -#ifndef CVS_LSTAT -/* Use the function from lib/lstat.c when the system version is broken. - */ -# if defined( HAVE_STAT_EMPTY_STRING_BUG ) || !defined( LSTAT_FOLLOWS_SLASHED_SYMLINK ) -# define CVS_LSTAT rpl_lstat -# else /* !defined(HAVE_STAT_EMPTY_STRING_BUG ) - * && defined( LSTAT_FOLLOWS_SLASHED_SYMLINK ) - */ -# define CVS_LSTAT lstat -# endif /* defined(HAVE_STAT_EMPTY_STRING_BUG ) - * || !defined( LSTAT_FOLLOWS_SLASHED_SYMLINK ) - */ -#endif - #ifndef CVS_UNLINK # define CVS_UNLINK unlink #endif