Clemens Buchacher <drizzd@xxxxxx> writes: > +int copy_times(int ofd, int ifd) > +{ > + struct stat st; > + struct timespec times[2]; > + if (fstat(ifd, &st)) > + return -1; > + times[0].tv_nsec = UTIME_OMIT; > + times[1].tv_sec = st.st_mtime; > + times[1].tv_nsec = ST_MTIME_NSEC(st); > + return futimens(ofd, times); > +} Hmm, futimens() is relatively new. Are minority platforms folks Ok with this patch? At least SunOS 5.11 (OpenSolaris 0811) seems to barf on UTIME_OMIT. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html