diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-12-30 11:44:24 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-12-30 11:44:24 +0000 |
commit | f4d966ae1797a150823dee397ae9c3dbf67e04b9 (patch) | |
tree | c2e5b09ad6cf185ed82f6c8e5069bd2da7dffc08 /_obnammodule.c | |
parent | db899ea4d428fba305e2492ff4e4ac1dc1cb5d69 (diff) | |
download | obnam-f4d966ae1797a150823dee397ae9c3dbf67e04b9.tar.gz |
fix utimensat use to use the right kind of struct
Diffstat (limited to '_obnammodule.c')
-rw-r--r-- | _obnammodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/_obnammodule.c b/_obnammodule.c index d4c30605..42d9847a 100644 --- a/_obnammodule.c +++ b/_obnammodule.c @@ -74,14 +74,14 @@ utimensat_wrapper(PyObject *self, PyObject *args) { int ret; const char *filename; - struct timeval tv[2]; + struct timespec tv[2]; if (!PyArg_ParseTuple(args, "sllll", &filename, &tv[0].tv_sec, - &tv[0].tv_usec, + &tv[0].tv_nsec, &tv[1].tv_sec, - &tv[1].tv_usec)) + &tv[1].tv_nsec)) return NULL; ret = utimensat(AT_FDCWD, filename, tv, AT_SYMLINK_NOFOLLOW); |