The Samba-Bugzilla – Attachment 6234 Details for
Bug 7940
Error opening Powerpoint files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-s3-Fix-bug-7940-fall-back-for-utimes-calls.patch (text/plain), 1.66 KB, created by
Volker Lendecke
on 2011-01-29 04:09:36 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2011-01-29 04:09:36 UTC
Size:
1.66 KB
patch
obsolete
>From a4b47d79e5ea2710cb8a16fab49c215ad86c02b9 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sat, 29 Jan 2011 10:59:14 +0100 >Subject: [PATCH] s3: Fix bug 7940 -- fall back for utimes calls > >There are systems where ./configure has detected advanced utimes calls which >are then not available on other kernels. We should do a proper fallback. >--- > source3/modules/vfs_default.c | 18 ++++++++++++++---- > 1 files changed, 14 insertions(+), 4 deletions(-) > >diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c >index 691fd7c..60b85d9 100644 >--- a/source3/modules/vfs_default.c >+++ b/source3/modules/vfs_default.c >@@ -898,7 +898,11 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, > } else { > result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0); > } >-#elif defined(HAVE_UTIMES) >+ if (!((result == -1) && (errno == ENOSYS))) { >+ goto out; >+ } >+#endif >+#if defined(HAVE_UTIMES) > if (ft != NULL) { > struct timeval tv[2]; > tv[0] = convert_timespec_to_timeval(ft->atime); >@@ -907,7 +911,11 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, > } else { > result = utimes(smb_fname->base_name, NULL); > } >-#elif defined(HAVE_UTIME) >+ if (!((result == -1) && (errno == ENOSYS))) { >+ goto out; >+ } >+#endif >+#if defined(HAVE_UTIME) > if (ft != NULL) { > struct utimbuf times; > times.actime = convert_timespec_to_time_t(ft->atime); >@@ -916,10 +924,12 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, > } else { > result = utime(smb_fname->base_name, NULL); > } >-#else >+ if (!((result == -1) && (errno == ENOSYS))) { >+ goto out; >+ } >+#endif > errno = ENOSYS; > result = -1; >-#endif > > out: > END_PROFILE(syscall_ntimes); >-- >1.7.0.4 >
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
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 7940
:
6233
| 6234