Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 470884 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure.ac (+3 lines)
Lines 268-273 AC_CHECK_FUNCS_ONCE([__mempcpy]) Link Here
268
dnl Chekf for obstack_printf
268
dnl Chekf for obstack_printf
269
AC_CHECK_FUNCS_ONCE([obstack_printf])
269
AC_CHECK_FUNCS_ONCE([obstack_printf])
270
270
271
dnl Check for futimes
272
AC_CHECK_FUNC([futimes])
273
271
dnl The directories with content.
274
dnl The directories with content.
272
275
273
dnl Documentation.
276
dnl Documentation.
(-)a/src/ar.c (-1 / +7 lines)
Lines 693-699 do_oper_extract (int oper, const char *arfname, char **argv, int argc, Link Here
693
		  tv[1].tv_sec = arhdr->ar_date;
693
		  tv[1].tv_sec = arhdr->ar_date;
694
		  tv[1].tv_usec = 0;
694
		  tv[1].tv_usec = 0;
695
695
696
		  if (unlikely (futimes (xfd, tv) != 0))
696
		  int success;
697
#ifdef HAVE_FUTIMES
698
		  success = futimes (xfd, tv);
699
#else
700
		  success = utimes (arhdr->ar_name, tv);
701
#endif
702
		  if (unlikely (success != 0))
697
		    {
703
		    {
698
		      error (0, errno,
704
		      error (0, errno,
699
			     gettext ("cannot change modification time of %s"),
705
			     gettext ("cannot change modification time of %s"),
(-)a/src/strip.c (-3 / +16 lines)
Lines 2061-2070 while computing checksum for debug information")); Link Here
2061
      close (debug_fd);
2061
      close (debug_fd);
2062
    }
2062
    }
2063
2063
2064
  int success;
2065
#ifdef HAVE_FUTIMES
2066
  success = futimes (fd, tvp);
2067
#else
2068
  success = utimes (fname, tvp);
2069
#endif
2070
2064
  /* If requested, preserve the timestamp.  */
2071
  /* If requested, preserve the timestamp.  */
2065
  if (tvp != NULL)
2072
  if (tvp != NULL)
2066
    {
2073
    {
2067
      if (futimes (fd, tvp) != 0)
2074
      if (success != 0)
2068
	{
2075
	{
2069
	  error (0, errno, gettext ("\
2076
	  error (0, errno, gettext ("\
2070
cannot set access and modification date of '%s'"),
2077
cannot set access and modification date of '%s'"),
Lines 2119-2127 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, Link Here
2119
	INTERNAL_ERROR (fname);
2126
	INTERNAL_ERROR (fname);
2120
    }
2127
    }
2121
2128
2129
  int success;
2130
#ifdef HAVE_FUTIMES
2131
  success = futimes (fd, tvp);
2132
#else
2133
  success = utimes (fname, tvp);
2134
#endif
2135
2122
  if (tvp != NULL)
2136
  if (tvp != NULL)
2123
    {
2137
    {
2124
      if (unlikely (futimes (fd, tvp) != 0))
2138
      if (unlikely (success != 0))
2125
	{
2139
	{
2126
	  error (0, errno, gettext ("\
2140
	  error (0, errno, gettext ("\
2127
cannot set access and modification date of '%s'"), fname);
2141
cannot set access and modification date of '%s'"), fname);
2128
- 

Return to bug 470884