Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 183098
Collapse All | Expand All

(-)coreutils-6.9-orig/lib/utimens.c (-3 / +3 lines)
Lines 75-82 Link Here
75
   Return 0 on success, -1 (setting errno) on failure.  */
75
   Return 0 on success, -1 (setting errno) on failure.  */
76
76
77
int
77
int
78
futimens (int fd ATTRIBUTE_UNUSED,
78
gl_futimens (int fd ATTRIBUTE_UNUSED,
79
	  char const *file, struct timespec const timespec[2])
79
	     char const *file, struct timespec const timespec[2])
80
{
80
{
81
  /* Some Linux-based NFS clients are buggy, and mishandle time stamps
81
  /* Some Linux-based NFS clients are buggy, and mishandle time stamps
82
     of files in NFS file systems in some cases.  We have no
82
     of files in NFS file systems in some cases.  We have no
Lines 185-189 Link Here
185
int
185
int
186
utimens (char const *file, struct timespec const timespec[2])
186
utimens (char const *file, struct timespec const timespec[2])
187
{
187
{
188
  return futimens (-1, file, timespec);
188
  return gl_futimens (-1, file, timespec);
189
}
189
}
(-)coreutils-6.9-orig/lib/utimens.h (-1 / +1 lines)
Lines 1-3 Link Here
1
#include <time.h>
1
#include <time.h>
2
int futimens (int, char const *, struct timespec const [2]);
2
int gl_futimens (int, char const *, struct timespec const [2]);
3
int utimens (char const *, struct timespec const [2]);
3
int utimens (char const *, struct timespec const [2]);
(-)coreutils-6.9-orig/src/copy.c (-1 / +1 lines)
Lines 623-629 Link Here
623
      timespec[0] = get_stat_atime (src_sb);
623
      timespec[0] = get_stat_atime (src_sb);
624
      timespec[1] = get_stat_mtime (src_sb);
624
      timespec[1] = get_stat_mtime (src_sb);
625
625
626
      if (futimens (dest_desc, dst_name, timespec) != 0)
626
      if (gl_futimens (dest_desc, dst_name, timespec) != 0)
627
	{
627
	{
628
	  error (0, errno, _("preserving times for %s"), quote (dst_name));
628
	  error (0, errno, _("preserving times for %s"), quote (dst_name));
629
	  if (x->require_preserve)
629
	  if (x->require_preserve)
(-)coreutils-6.9-orig/src/touch.c (-2 / +2 lines)
Lines 1-5 Link Here
1
/* touch -- change modification and access times of files
1
/* touch -- change modification and access times of files
2
   Copyright (C) 87, 1989-1991, 1995-2005 Free Software Foundation, Inc.
2
   Copyright (C) 87, 1989-1991, 1995-2005, 2007 Free Software Foundation, Inc.
3
3
4
   This program is free software; you can redistribute it and/or modify
4
   This program is free software; you can redistribute it and/or modify
5
   it under the terms of the GNU General Public License as published by
5
   it under the terms of the GNU General Public License as published by
Lines 182-188 Link Here
182
      t = timespec;
182
      t = timespec;
183
    }
183
    }
184
184
185
  ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
185
  ok = (gl_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
186
186
187
  if (fd == STDIN_FILENO)
187
  if (fd == STDIN_FILENO)
188
    {
188
    {

Return to bug 183098