Add Etc::Group struct members to upstream

This commit is contained in:
Douglas Eichelberger 2024-02-04 22:07:05 -08:00
parent 791ca27896
commit 772ddb0e1e
2 changed files with 14 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class Mktemp
begin begin
chown(nil, group_id, @tmpdir) chown(nil, group_id, @tmpdir)
rescue Errno::EPERM rescue Errno::EPERM
opoo "Failed setting group \"#{T.unsafe(Etc.getgrgid(group_id)).name}\" on #{@tmpdir}" opoo "Failed setting group \"#{T.must(Etc.getgrgid(group_id)).name}\" on #{@tmpdir}"
end end
begin begin

View File

@ -3,7 +3,19 @@
# This file contains temporary definitions for fixes that have # This file contains temporary definitions for fixes that have
# been submitted upstream to https://github.com/sorbet/sorbet. # been submitted upstream to https://github.com/sorbet/sorbet.
# https://github.com/sorbet/sorbet/pull/7647/files # https://github.com/sorbet/sorbet/pull/7650
class Etc::Group < Struct
sig { returns(Integer) }
def gid; end
sig { returns(T::Array[String]) }
def mem; end
sig { returns(String) }
def name; end
sig { returns(String) }
def passwd; end
end
# https://github.com/sorbet/sorbet/pull/7647
module IRB module IRB
sig { params(ap_path: T.nilable(String), argv: T::Array[String]).void } sig { params(ap_path: T.nilable(String), argv: T::Array[String]).void }
def self.setup(ap_path, argv: ::ARGV); end def self.setup(ap_path, argv: ::ARGV); end