The last argument to atalk_build_paths() is always false, remove it.
authorJeremy Allison <jra@samba.org>
Tue, 18 Oct 2011 18:24:35 +0000 (11:24 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 18 Oct 2011 20:33:47 +0000 (22:33 +0200)
source3/modules/vfs_netatalk.c

index 8d2c9b7ab1cb90fee1a093d5591a7e8ab9d8bb04..4c65af7e8a63e22ea6b86ce285d3f90042d3a86a 100644 (file)
@@ -34,8 +34,7 @@ static int atalk_build_paths(TALLOC_CTX *ctx, const char *path,
                             const char *fname,
                             char **adbl_path, char **orig_path,
                             SMB_STRUCT_STAT *adbl_info,
-                            SMB_STRUCT_STAT *orig_info,
-                            bool fake_dir_create_times);
+                            SMB_STRUCT_STAT *orig_info);
 
 static int atalk_unlink_file(const char *path);
 
@@ -61,8 +60,7 @@ static int atalk_build_paths(TALLOC_CTX *ctx, const char *path,
                             const char *fname,
                             char **adbl_path, char **orig_path,
                             SMB_STRUCT_STAT *adbl_info,
-                            SMB_STRUCT_STAT *orig_info,
-                            bool fake_dir_create_times)
+                            SMB_STRUCT_STAT *orig_info)
 {
        int ptr0 = 0;
        int ptr1 = 0;
@@ -88,7 +86,7 @@ static int atalk_build_paths(TALLOC_CTX *ctx, const char *path,
        /* get pointer to last '/' */
        ptr1 = atalk_get_path_ptr(*orig_path);
 
-       sys_lstat(*orig_path, orig_info, fake_dir_create_times);
+       sys_lstat(*orig_path, orig_info, false);
 
        if (S_ISDIR(orig_info->st_ex_mode)) {
                *adbl_path = talloc_asprintf(ctx, "%s/%s/%s/", 
@@ -103,7 +101,7 @@ static int atalk_build_paths(TALLOC_CTX *ctx, const char *path,
 #if 0
        DEBUG(3, ("ATALK: DEBUG:\n%s\n%s\n", *orig_path, *adbl_path)); 
 #endif
-       sys_lstat(*adbl_path, adbl_info, fake_dir_create_times);
+       sys_lstat(*adbl_path, adbl_info, false);
        return 0;
 }
 
@@ -276,7 +274,7 @@ static int atalk_rename(struct vfs_handle_struct *handle,
 
        if (atalk_build_paths(talloc_tos(), handle->conn->origpath, oldname,
                              &adbl_path, &orig_path, &adbl_info,
-                             &orig_info, false) != 0)
+                             &orig_info) != 0)
                goto exit_rename;
 
        if (S_ISDIR(orig_info.st_ex_mode) || S_ISREG(orig_info.st_ex_mode)) {
@@ -337,7 +335,7 @@ static int atalk_unlink(struct vfs_handle_struct *handle,
 
        if (atalk_build_paths(talloc_tos(), handle->conn->origpath, path,
                              &adbl_path, &orig_path,
-                             &adbl_info, &orig_info, false) != 0)
+                             &adbl_info, &orig_info) != 0)
                goto exit_unlink;
 
        if (S_ISDIR(orig_info.st_ex_mode) || S_ISREG(orig_info.st_ex_mode)) {
@@ -371,8 +369,7 @@ static int atalk_chmod(struct vfs_handle_struct *handle, const char *path, mode_
                return ret;
 
        if (atalk_build_paths(ctx, handle->conn->origpath, path, &adbl_path,
-                             &orig_path, &adbl_info, &orig_info,
-                             false) != 0)
+                             &orig_path, &adbl_info, &orig_info) != 0)
                goto exit_chmod;
 
        if (!S_ISDIR(orig_info.st_ex_mode) && !S_ISREG(orig_info.st_ex_mode)) {
@@ -405,7 +402,7 @@ static int atalk_chown(struct vfs_handle_struct *handle, const char *path, uid_t
 
        if (atalk_build_paths(ctx, handle->conn->origpath, path,
                              &adbl_path, &orig_path,
-                             &adbl_info, &orig_info, false) != 0)
+                             &adbl_info, &orig_info) != 0)
                goto exit_chown;
 
        if (!S_ISDIR(orig_info.st_ex_mode) && !S_ISREG(orig_info.st_ex_mode)) {
@@ -440,7 +437,7 @@ static int atalk_lchown(struct vfs_handle_struct *handle, const char *path, uid_
 
        if (atalk_build_paths(ctx, handle->conn->origpath, path,
                              &adbl_path, &orig_path,
-                             &adbl_info, &orig_info, false) != 0)
+                             &adbl_info, &orig_info) != 0)
                goto exit_lchown;
 
        if (!S_ISDIR(orig_info.st_ex_mode) && !S_ISREG(orig_info.st_ex_mode)) {