Return to rcsutil.c CVS log | Up to [local] / src / usr.bin / rcs |
version 1.12, 2006/05/27 05:49:14 | version 1.13, 2006/05/27 08:12:29 | ||
---|---|---|---|
|
|
||
struct stat st; | struct stat st; | ||
time_t mtime; | time_t mtime; | ||
if (fstat(file->fd, &st) == -1) { | if (fstat(file->rf_fd, &st) == -1) { | ||
warn("%s", file->rf_path); | warn("%s", file->rf_path); | ||
return (-1); | return (-1); | ||
} | } | ||
|
|
||
tv[0].tv_sec = mtime; | tv[0].tv_sec = mtime; | ||
tv[1].tv_sec = tv[0].tv_sec; | tv[1].tv_sec = tv[0].tv_sec; | ||
if (futimes(file->fd, tv) == -1) | if (futimes(file->rf_fd, tv) == -1) | ||
err(1, "utimes"); | err(1, "utimes"); | ||
} | } | ||