Ticket #2984 (closed defect: duplicate)
Bogus file ownership reported by FISH if the remote user does not exists locally
Reported by: | ply | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mc-vfs | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Present in 4.8.7-116-g5cbef94, too.
Steps to reproduce:
- Choose a remote host with an additional user account
- Use the 'shell link' function to open a directory on that host
- Remote files owned by locally nonexistent user are reported as yours
This is VERY confusing. Listing the same directory over an NFS mount shows those ownerships as numeric UIDs as expected. The problem seems to be the vfs_finduid function in lib/vfs/utilvfs.c, which looks up textual names, and if not found, then returns the current user's UID.
Of course, transferring symbolic account names have its own advantages, but then mapping failures should be handled more sanely, such as mapping to nobody instead.
Change History
Note: See
TracTickets for help on using
tickets.
Duplicate of #1407.