r24120: add a file_id_create() hook into the VFS layer
[samba.git] / source / smbd / filename.c
index a1b56736a09393ef13b7b55071b3877bc7973d65..d5c22e81c368454b4b9a6a17f34ae419eee279ec 100644 (file)
@@ -540,7 +540,8 @@ NTSTATUS unix_convert(connection_struct *conn,
                } /* end else */
 
 #ifdef DEVELOPER
-               if (VALID_STAT(st) && get_delete_on_close_flag(file_id_sbuf(&st))) {
+               if (VALID_STAT(st) &&
+                   get_delete_on_close_flag(vfs_file_id_from_sbuf(conn, &st))) {
                        result = NT_STATUS_DELETE_PENDING;
                        goto fail;
                }