The Samba-Bugzilla – Attachment 2027 Details for
Bug 3495
Add support for real creation time on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
send birthtime (with configure checks)
birthtime.diff (text/plain), 1.11 KB, created by
Marcin Wisnicki
on 2006-07-10 16:06:40 UTC
(
hide
)
Description:
send birthtime (with configure checks)
Filename:
MIME Type:
Creator:
Marcin Wisnicki
Created:
2006-07-10 16:06:40 UTC
Size:
1.11 KB
patch
obsolete
>--- source/configure.in.orig Sun Jul 9 20:33:35 2006 >+++ source/configure.in Mon Jul 10 16:52:46 2006 >@@ -2576,6 +2576,16 @@ > fi > fi > >+AC_CACHE_CHECK([for st_birthtime in struct stat],samba_cv_HAVE_STAT_ST_BIRTHTIME,[ >+AC_TRY_COMPILE([#include <sys/types.h> >+#include <sys/stat.h> >+#include <unistd.h>], >+[struct stat st; st.st_birthtime = 0;], >+samba_cv_HAVE_STAT_ST_BIRTHTIME=yes,samba_cv_HAVE_STAT_ST_BIRTHTIME=no)]) >+if test x"$samba_cv_HAVE_STAT_ST_BIRTHTIME" = x"yes"; then >+ AC_DEFINE(HAVE_STAT_ST_BIRTHTIME,1,[Whether the stat struct has a st_birthtime property]) >+fi >+ > AC_CACHE_CHECK([for st_blocks in struct stat],samba_cv_HAVE_STAT_ST_BLOCKS,[ > AC_TRY_COMPILE([#include <sys/types.h> > #include <sys/stat.h> >--- source/lib/time.c.orig Wed Nov 9 19:28:57 2005 >+++ source/lib/time.c Mon Jul 10 17:37:12 2006 >@@ -703,6 +703,12 @@ > if(S_ISDIR(st->st_mode) && fake_dirs) { > return (time_t)315493200L; /* 1/1/1980 */ > } >+ >+#ifdef HAVE_STAT_ST_BIRTHTIME >+ if((int)st->st_birthtime >= 0) { >+ return st->st_birthtime; >+ } >+#endif > > ret = MIN(st->st_ctime, st->st_mtime); > ret1 = MIN(ret, st->st_atime);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3495
:
1723
| 2027