[Bug 283355] install: -U does not validate -o and -g values
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 283355] install: -U does not validate -o and -g values"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Apr 2025 20:46:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283355 --- Comment #2 from Pat Maddox <pat@patmaddox.com> --- I agree that these should not be validated. This PR is in response to this comment: https://github.com/freebsd/freebsd-src/pull/1550#issuecomment-2543992885 As mentioned in my reply (https://github.com/freebsd/freebsd-src/pull/1550#issuecomment-2543997101) I think it's reasonable to set uid / gid values that may not be on the builder machine, but will be present on the installed machine. Plus there's the reality that chown / chgrp let you set any ID, even if it doesn't correspond to a user in /etc/passwd. Thus I don't see any reason why install should validate uid / gid semantically (i.e. known on the present machine). Ensuring that they are within acceptable ranges seems reasonable to me. Jessica Clarke has expressed a clear preference for validating (it was a few months ago, things may have changed since). I'm not sure how a conversation like this proceeds. -- You are receiving this mail because: You are the assignee for the bug.