Skip to content

Commit

Permalink
Avoid using __progname
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Mar 17, 2021
1 parent 50758a1 commit 6e376a2
Show file tree
Hide file tree
Showing 4 changed files with 764 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ release.md
.swiftpm
openssh-portable
Package.resolved
.vscode
3 changes: 2 additions & 1 deletion Sources/openssh-apple/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ extension Platform {

try? sh("rm -rf openssh-portable")
try sh("git clone --depth 1 \(Config.opensshOrigin) --branch \(Config.opensshBranch)")
try sh("cp -f readpass.c sshkey.h authfd.h openssh-portable/")
try sh("LC_CTYPE=C find ./openssh-portable -type f -exec sed -i '' -e 's/__progname/blink__progname/' {} \\;")
try sh("cp -f readpass.c sshkey.h authfd.h log.c ssh-sk-helper.c openssh-portable/")
try sh("LC_CTYPE=C find ./openssh-portable -type f -exec sed -i '' -e 's/ssh_init(/openssh_init(/' {} \\;")
try sh("LC_CTYPE=C find ./openssh-portable -type f -exec sed -i '' -e 's/ssh_free(/openssh_free(/' {} \\;")

Expand Down
Loading

0 comments on commit 6e376a2

Please sign in to comment.