#14029 closed bug (fixed)

[File Copy Operations] Copied files from RO USB to RW USB are RO (Read-only)

Reported by: al_xv Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: File Systems/FAT Version: R1/Development
Keywords: file permissions Cc:
Blocked By: #10796 Blocking:
Has a Patch: no Platform: x86

Description

I copied 10 files from a Read-Only USB HDD to a Read-Write enabled USB flash drive. I didn't notice right away in Haiku, but upon inserting the Flash drive into a Linux machine, I noticed all files I copied had Read-Only permissions (locked file icon overlay). File permissions can be corrected manually.

Steps to Reproduce:

  • Mount a USB drive as Read-Only.
  • Mount a 2nd USB drive as Read-Write
  • Copy files from RO drive to RW drive.
  • Checked copied files permissions

Result

Copied files are all Read-Only

Expected Result

Copied files match original permissions regardless of media Write permissions.

This seems like a logical result since the files are copied from RO media... however, the source files themselves are not RO, so this behavior is undesireable.

Change History (14)

comment:1 by diver, 19 months ago

What filesystem it is?

in reply to:  1 comment:2 by al_xv, 19 months ago

Replying to diver:

What filesystem it is?

  • The Read-Only was FAT32 and NTFS (I actually copied files from 2 drives)
  • The Read-Write drive was FAT32
Last edited 19 months ago by al_xv (previous) (diff)

comment:3 by diver, 19 months ago

Component: File SystemsFile Systems/FAT

comment:4 by diver, 19 months ago

#11911 looks suspiciously similar.

comment:5 by khallebal, 19 months ago

It may not even be a haiku problem, but a linux one, i've had the same behabiour in linux where haiku wasn't even involved, my guess is it's linux or/and xfce bug (if you're using this combination? ).

Did you check the pemissions of these files in haiku?

I'd suggest you retry the operation and check the permissions in haiku before anything else.

comment:6 by korli, 19 months ago

Blocked By: 10796 added
Resolution: duplicate
Status: newclosed

See #10796

comment:7 by korli, 19 months ago

Resolution: duplicate
Status: closedreopened

Forgot we need to check if the FAT file-system add-on changes permissions when mounting read-only.

comment:10 by korli, 19 months ago

FAT behavior changed in hrev51846.

comment:11 by korli, 19 months ago

NTFS behavior changed in hrev51847.

in reply to:  5 comment:12 by al_xv, 19 months ago

Replying to khaled:

Did you check the pemissions of these files in haiku?

I'd suggest you retry the operation and check the permissions in haiku before anything else.

Retried copy operations and copied files are RO in Haiku as well.

Will retest with hrev51847.

comment:13 by al_xv, 19 months ago

Verrified fixed on hrev51847 liveCD. Confirmed with FAT32 to FAT32 file copy. Copied file permissions matched original file on RO drive.

comment:14 by korli, 19 months ago

Resolution: fixed
Status: reopenedclosed

Thanks for the feedback!

Note: See TracTickets for help on using tickets.