Merge pull request #424 from heckj/fix-setuid-setgid-doc-references

Point setUserID and setGroupID docs at the chmod(2) man page
This commit is contained in:
Guillaume Lessard authored and GitHub committed 2026-11-13 16:59:55 -08:00
commit 406f7634f1
1 file changed
+4 -2
+4 -2
View File
@@ -113,13 +113,15 @@ public struct FilePermissions: OptionSet, Sendable, Hashable, Codable {
/// Indicates that the file is executed as the owner.
///
/// For more information, see the `setuid(2)` man page.
/// For more information, see the `chmod(2)` man page's
/// discussion of `S_ISUID` (the set-user-ID bit).
@_alwaysEmitIntoClient
public static var setUserID: FilePermissions { .init(rawValue: 0o4000) }
/// Indicates that the file is executed as the group.
///
/// For more information, see the `setgid(2)` man page.
/// For more information, see the `chmod(2)` man page's
/// discussion of `S_ISGID` (the set-group-ID bit).
@_alwaysEmitIntoClient
public static var setGroupID: FilePermissions { .init(rawValue: 0o2000) }