Univention Bugzilla – Attachment 2833 Details for
Bug 19890
Locking auf xfs-Dateisystem (wahrscheinlich) fehlerhaft
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
master.try-other-methods-if-utimensat-is-not-supported-ret.patch
master.try-other-methods-if-utimensat-is-not-supported-ret.patch (text/plain), 1.08 KB, created by
Janek Walkenhorst
on 2010-11-17 17:28:20 CET
(
hide
)
Description:
master.try-other-methods-if-utimensat-is-not-supported-ret.patch
Filename:
MIME Type:
Creator:
Janek Walkenhorst
Created:
2010-11-17 17:28:20 CET
Size:
1.08 KB
patch
obsolete
>From 67f947c3741b8135b6856e17cde9af3115f3d069 Mon Sep 17 00:00:00 2001 >From: Janek Walkenhorst <walkenhorst@univention.de> >Date: Wed, 17 Nov 2010 16:23:39 +0100 >Subject: [PATCH] try other methods if utimensat is not supported (returns ENOSYS) > >--- > source3/modules/vfs_default.c | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > >diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c >index 6f5b09a..6e4e3a1 100644 >--- a/source3/modules/vfs_default.c >+++ b/source3/modules/vfs_default.c >@@ -786,7 +786,11 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, > } else { > result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0); > } >-#elif defined(HAVE_UTIMES) >+ /* try other methods if utimensat is not supported */ >+ if (result == -1 && errno == ENOSYS) >+#endif >+{ >+#if defined(HAVE_UTIMES) > if (ft != NULL) { > struct timeval tv[2]; > tv[0] = convert_timespec_to_timeval(ft->atime); >@@ -808,6 +812,7 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, > errno = ENOSYS; > result = -1; > #endif >+} > > out: > END_PROFILE(syscall_ntimes); >-- >1.5.6.5 >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19890
:
2833
|
2834
|
2838