|
@@ -257,9 +257,6 @@ static int local_post_create_passthrough(FsContext *fs_ctx, const char *path,
|
|
|
{
|
|
|
char buffer[PATH_MAX];
|
|
|
|
|
|
- if (chmod(rpath(fs_ctx, path, buffer), credp->fc_mode & 07777) < 0) {
|
|
|
- return -1;
|
|
|
- }
|
|
|
if (lchown(rpath(fs_ctx, path, buffer), credp->fc_uid,
|
|
|
credp->fc_gid) < 0) {
|
|
|
/*
|
|
@@ -270,6 +267,10 @@ static int local_post_create_passthrough(FsContext *fs_ctx, const char *path,
|
|
|
return -1;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (chmod(rpath(fs_ctx, path, buffer), credp->fc_mode & 07777) < 0) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
return 0;
|
|
|
}
|
|
|
|