We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68cd877 commit d87d3d9Copy full SHA for d87d3d9
1 file changed
plugin.go
@@ -57,7 +57,9 @@ func (p *Plugin) Init(cfg Configurer, log NamedLogger) error {
57
58
p.log = log.NamedLogger(PluginName)
59
60
- // resolve the configured run-as user's uid/gid once
+ // resolve the configured run-as user's uid/gid once; reset first so a
61
+ // re-Init without a configured user does not keep stale values
62
+ p.uid, p.gid = 0, 0
63
if p.cfg.User != "" {
64
// process.ExecuteFromUser is a no-op on Windows, and Windows uids (SIDs)
65
// are not numeric — reject the option explicitly instead of failing on Atoi.
0 commit comments