przemoc / metastore

Store and restore metadata from a filesystem.
http://software.przemoc.net/#metastore
GNU General Public License v2.0
171 stars 31 forks source link

Can't change owner when current owner is numeric UID #41

Closed insanityinside closed 8 years ago

insanityinside commented 8 years ago

Attempting to apply metadata to a filesystem where the current UID/GID is not in /etc/passwd results in a "getpwuid failed" error on startup, and a failure to change the ownership of the files specified in .metadata, with a "removed" message when the files were actually there.

(Situation occurred after running an rsync from a host when restoring, and the UID/GID in question restored by rsync was a different UID/GID to the original.)

przemoc commented 8 years ago

It's symmetric to issue: #37. Fixing it sensibly requires some other stuff, which isn't in metastore yet.

insanityinside commented 8 years ago

Sorry, hadn't registered that previous bug when I looked through. Will close this bug and add notes to #37 .