ftpfs_utimens: update for fuse3, which uses timespec instead of utimbuf

This commit is contained in:
2024-12-26 23:51:15 +00:00
parent 2e7b724b2b
commit 7b7d769d59
2 changed files with 2 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ static int cache_truncate(const char *path, off_t size, struct fuse_file_info *f
return err;
}
static int cache_utimens(const char *path, struct utimbuf *buf, struct fuse_file_info* fi)
static int cache_utimens(const char *path, const struct timespec *buf, struct fuse_file_info* fi)
{
int err = cache.next_oper->oper.utimens(path, buf, fi);
if (!err)

View File

@@ -21,7 +21,6 @@
#include <fuse_opt.h>
#include <glib.h>
#include <semaphore.h>
#include <utime.h>
#include <assert.h>
#include "charset_utils.h"
@@ -1021,7 +1020,7 @@ static int ftpfs_truncate(const char* path, off_t offset, struct fuse_file_info*
return op_return(-EPERM, "ftpfs_truncate");
}
static int ftpfs_utimens(const char* path, struct utimbuf* time, struct fuse_file_info* fi) {
static int ftpfs_utimens(const char* path, const struct timespec* time, struct fuse_file_info* fi) {
(void) path;
(void) time;
(void) fi;