Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 173581 - futimesat(fd, NULL, NULL) segfaults
futimesat(fd, NULL, NULL) segfaults
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-11-18 06:41 EST by Tim Waugh
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 2.3.90-18
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-20 07:40:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2005-11-18 06:41:35 EST
Description of problem:
The futimesat() function segfaults when given only an fd.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <utime.h>
#include <stdlib.h>
int main (int argc, char **argv)
  int fd = open (argv[0], O_RDONLY);
  futimesat (fd, NULL, NULL);
  close (fd);

Actual results:

The only documentation I've managed to find about this function suggests that
futimesat(fd, NULL, NULL) should set the utimes of the file referenced by fd to
the current time.
Comment 1 Tim Waugh 2005-11-18 06:42:17 EST
FWIW, this causes the coreutils 'touch' utility to segfault when coreutils is
rebuilt against current rawhide.
Comment 3 Jakub Jelinek 2005-11-20 07:40:52 EST
Should be fixed in glibc-2.3.90-18

Note You need to log in before you can comment on or make changes to this bug.