-
-
Notifications
You must be signed in to change notification settings - Fork 78
Stop faking current user uid/gid in extfs #4643
Copy link
Copy link
Labels
area: vfsVirtual File System supportVirtual File System supportprio: mediumHas the potential to affect progressHas the potential to affect progressver: 4.8.33Reproducible in version 4.8.33Reproducible in version 4.8.33
Milestone
Metadata
Metadata
Assignees
Labels
area: vfsVirtual File System supportVirtual File System supportprio: mediumHas the potential to affect progressHas the potential to affect progressver: 4.8.33Reproducible in version 4.8.33Reproducible in version 4.8.33
Important
This issue was migrated from Trac:
zaytsev(@zyv)Currently, we have a completely inconsistent way of addressing uid / gid in our extfs scripts.
Here is an assortment of what we do in different cases:
Sometimes numeric and sometimes symbolic names are returned.
This makes testing difficult and in particular next to impossible to make the test suite run as root.
My suggestion is to always return 0/0, if the FS in question does not have information about uid/gid, instead of doing 1.-4. Only if the FS does have this information, try to translate it appropriately.
My understanding is that mc will take current user uid/gid upon copyout anyways, so faking is not necessary. Going for 0/0 doesn't present any disadvantage I can think of.