Skip to content

--equal does not work on files with numerical uid or gid #234

@hungrywolf27

Description

@hungrywolf27

On Ubuntu Linux. rmlint --equal reports files as different if one of them has a numerical uid or gid that is not in /etc/passwd.

Let's say I am user alice, and user bob also exists on the system:

$ cp testfile file1
$ cp testfile file2
$ rmlint --equal file1 file2 ; echo $?
0
$ sudo chown bob:bob file1 
$ rmlint --equal file1 file2 ; echo $?
0
$ sudo chown bob:789 file1 
$ rmlint --equal file1 file2 ; echo $?
1
$ diff file1 file2 ; echo $?
0
$ cmp file1 file2 ; echo $?
0
$ sudo chown 789:bob file1 
$ rmlint --equal file1 file2 ; echo $?
1
$ cmp file1 file2 ; echo $?
0
$ diff file1 file2 ; echo $?
0
$ sudo chown bob:bob file1 
$ rmlint --equal file1 file2 ; echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions