You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code prints true when ran as a user,
Running it from a shell obtained via "psexec -i -s cmd.exe" . Returns false.
This is an issue in gitea (and most likely gogs) as they run the service using minwinsvc, then call the same binary to do some subtasks (somewhat like how git functions).
This causes the init code to run, (with Os.exit()) when the command is being executed in a shell, and should be not ran as a service at this point.
Huh. I'm not sure I would call psexec an interactive service. Really, this actually is called from a service when called from psexec. You'll need an alternate flag or method to deal with this.
The following code prints true when ran as a user,
Running it from a shell obtained via "psexec -i -s cmd.exe" . Returns false.
This is an issue in gitea (and most likely gogs) as they run the service using minwinsvc, then call the same binary to do some subtasks (somewhat like how git functions).
This causes the init code to run, (with Os.exit()) when the command is being executed in a shell, and should be not ran as a service at this point.
The text was updated successfully, but these errors were encountered: