The Samba-Bugzilla – Attachment 5761 Details for
Bug 7474
unconditional use of st_blocks and st_blksize
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
untested alternative patch
blksize-and-blocks-missing.patch (text/plain), 692 bytes, created by
Björn Jacke
on 2010-06-07 10:04:43 UTC
(
hide
)
Description:
untested alternative patch
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2010-06-07 10:04:43 UTC
Size:
692 bytes
patch
obsolete
>diff --git a/source3/lib/system.c b/source3/lib/system.c >index 5aab441..7859c61 100644 >--- a/source3/lib/system.c >+++ b/source3/lib/system.c >@@ -534,8 +534,17 @@ static void init_stat_ex_from_stat (struct stat_ex *dst, > dst->st_ex_mtime = get_mtimespec(src); > dst->st_ex_ctime = get_ctimespec(src); > make_create_timespec(src, dst, fake_dir_create_times); >+#ifdef HAVE_STAT_ST_BLKSIZE > dst->st_ex_blksize = src->st_blksize; >+#else >+ dst->st_ex_blksize = STAT_ST_BLOCKSIZE; >+#endif >+ >+#ifdef HAVE_STAT_ST_BLOCKS > dst->st_ex_blocks = src->st_blocks; >+#else >+ dst->st_ex_blocks = src->st_size % STAT_ST_BLOCKSIZE + 1; >+#endif > > #ifdef HAVE_STAT_ST_FLAGS > dst->st_ex_flags = src->st_flags;
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 7474
:
5745
|
5761
|
5775