Skip to content

Simple, more elegant implementation of setting uid/gid on copied files#191

Merged
r-vdp merged 1 commit intonumtide:mainfrom
srd424:chown-v2
Feb 3, 2025
Merged

Simple, more elegant implementation of setting uid/gid on copied files#191
r-vdp merged 1 commit intonumtide:mainfrom
srd424:chown-v2

Conversation

@srd424
Copy link
Copy Markdown
Contributor

@srd424 srd424 commented Jan 29, 2025

Simple implementation of setting uid/gid on copied files, more elegant error handing-wise than previous version.

This still does not yet look up user or group names, but it's useful enough to merge I think?

Partial fix for #190.

@zimbatm zimbatm requested a review from r-vdp January 30, 2025 10:04
@r-vdp r-vdp merged commit de28d23 into numtide:main Feb 3, 2025
@r-vdp
Copy link
Copy Markdown
Member

r-vdp commented Feb 3, 2025

Thanks!

For the user resolution we can use https://docs.rs/nix/latest/nix/unistd/struct.User.html#method.from_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants