Skip to content

Commit 14d922c

Browse files
committed
refactor: revert unneeded workspace changes
1 parent 6fbe475 commit 14d922c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

workspace/core/ssh-entrypoint.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ let
44
sshEntryPoint = pkgs.writeScript "ssh-entrypoint" ''
55
#!${pkgs.bashInteractive}/bin/bash
66
7-
# Handle SCP protocol directly
8-
if [ "$#" -gt 0 ] && echo "$1" | grep -q "^scp "; then
9-
exec "$@"
10-
fi
11-
12-
# Handle other commands or interactive shell
137
if [ "$#" -gt 0 ]; then
148
$SHELL "$@"
159
else

workspace/core/sudo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main():
3131
else:
3232
error(f"{program}: unknown user: {args.user}")
3333

34-
groups = [group.gr_id for group in grp.getgrall() if user.pw_name in group.gr_mem]
34+
groups = [group.gr_gid for group in grp.getgrall() if user.pw_name in group.gr_mem]
3535
if user.pw_gid not in groups:
3636
groups.append(user.pw_gid)
3737

0 commit comments

Comments
 (0)