-
Notifications
You must be signed in to change notification settings - Fork 143
Closed
Labels
Description
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