[Adding bug-gnulib.] On 09/16/10 11:17, Eric Blake wrote:
> Why not just use the gnulib module fdutimensat instead of reimplementing > this yourself as fd_utimensat? Mainly because fdutimensat does not let 'tar' pass AT_SYMLINK_NOFOLLOW to the underlying system call. Sometimes that flag is needed, sometimes not, but fdutimensat hardwires a '0'. If fdutimensat were modified to have an additional "atflag" argument, that would overcome the main objection. By the way, in a future version of tar I will also have a need for similar functions fdchmodat, fdchownat, fdfstatat, but I don't know whether they're worth gnulibifying. (It's not entirely clear that fdutimensat is worth gnulibifying either, to be honest. :-)