mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
fixed a bug issue #49
This commit is contained in:
parent
7a55eab399
commit
cbec8da9a3
@ -791,7 +791,8 @@ static int create_file_object(const char* path, mode_t mode, uid_t uid, gid_t gi
|
|||||||
meta["x-amz-meta-mtime"] = str(time(NULL));
|
meta["x-amz-meta-mtime"] = str(time(NULL));
|
||||||
|
|
||||||
S3fsCurl s3fscurl(true);
|
S3fsCurl s3fscurl(true);
|
||||||
return s3fscurl.PutRequest(path, meta, -1, false); // fd=-1 means for creating zero byte object.
|
return s3fscurl.PutRequest(path, meta, -1, true); // fd=-1 means for creating zero byte object.
|
||||||
|
// overwrite sse headers, so create new file.
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3fs_mknod(const char *path, mode_t mode, dev_t rdev)
|
static int s3fs_mknod(const char *path, mode_t mode, dev_t rdev)
|
||||||
@ -876,7 +877,8 @@ static int create_directory_object(const char* path, mode_t mode, time_t time, u
|
|||||||
meta["x-amz-meta-mtime"] = str(time);
|
meta["x-amz-meta-mtime"] = str(time);
|
||||||
|
|
||||||
S3fsCurl s3fscurl;
|
S3fsCurl s3fscurl;
|
||||||
return s3fscurl.PutRequest(tpath.c_str(), meta, -1, false); // fd=-1 means for creating zero byte object.
|
return s3fscurl.PutRequest(tpath.c_str(), meta, -1, true); // fd=-1 means for creating zero byte object.
|
||||||
|
// overwrite sse headers, so create new file.
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3fs_mkdir(const char* path, mode_t mode)
|
static int s3fs_mkdir(const char* path, mode_t mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user