Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37401919
en ru br
Репозитории ALT
S:9.4.0.24.75e248-alt1
5.1: 7.6-alt1
4.1: 6.11-alt1
4.0: 5.97-alt6
3.0: 5.3.1-alt0.4
www.altlinux.org/Changes

Другие репозитории
Upstream:8.1pl3

Группа :: Система/Основа
Пакет: coreutils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gnulib-7.6-alt1.patch
Скачать


 lib/utimens.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/utimens.c b/lib/utimens.c
index f7bc75e..b7bd6b2 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -99,9 +99,11 @@ gl_futimens (int fd ATTRIBUTE_UNUSED,
          http://bugzilla.redhat.com/449910
          It appears that utimensat can mistakenly return 280 rather
          than -1 upon failure.
+         Work around OpenVZ kernel bug:
+         http://bugzilla.openvz.org/show_bug.cgi?id=970
          FIXME: remove in 2010 or whenever the offending kernels
          are no longer in common use.  */
-      if (0 < result)
+      if (0 < result || (result < 0 && errno == EFAULT))
         errno = ENOSYS;
 # endif
 
@@ -114,7 +116,7 @@ gl_futimens (int fd ATTRIBUTE_UNUSED,
     int result = futimens (fd, timespec);
 # ifdef __linux__
     /* Work around the same bug as above.  */
-    if (0 < result)
+    if (0 < result || (result < 0 && errno == EFAULT))
       errno = ENOSYS;
 # endif
     if (result == 0 || errno != ENOSYS)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin