File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7323,6 +7323,8 @@ static inline abi_long host_to_target_stat64(void *cpu_env,
7323
7323
#else
7324
7324
struct target_stat * target_st ;
7325
7325
#endif
7326
+ int cnvt_st_mode = host_to_target_bitmask (host_st -> st_mode , st_mode_tlb );
7327
+
7326
7328
7327
7329
if (!lock_user_struct (VERIFY_WRITE , target_st , target_addr , 0 ))
7328
7330
return - TARGET_EFAULT ;
@@ -7332,7 +7334,7 @@ static inline abi_long host_to_target_stat64(void *cpu_env,
7332
7334
#ifdef TARGET_STAT64_HAS_BROKEN_ST_INO
7333
7335
__put_user (host_st -> st_ino , & target_st -> __st_ino );
7334
7336
#endif
7335
- __put_user (host_st -> st_mode , & target_st -> st_mode );
7337
+ __put_user (cnvt_st_mode , & target_st -> st_mode );
7336
7338
__put_user (host_st -> st_nlink , & target_st -> st_nlink );
7337
7339
__put_user (host_st -> st_uid , & target_st -> st_uid );
7338
7340
__put_user (host_st -> st_gid , & target_st -> st_gid );
You can’t perform that action at this time.
0 commit comments