| 1 |
Forwardedscip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/patches/`0001-Accept-in-usernames-for-ls-self-test.patch`#Forwarded.: https://github.com/pkg/sftp/pull/639 |
| 2 |
Fromscip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/patches/`0001-Accept-in-usernames-for-ls-self-test.patch`#From.: Simon Josefsson <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Datescip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/patches/`0001-Accept-in-usernames-for-ls-self-test.patch`#Date.: Tue, 7 Oct 2025 15:32:45 +0200 |
| 4 |
Subjectscip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/patches/`0001-Accept-in-usernames-for-ls-self-test.patch`#Subject.: [PATCH] Accept '-' in usernames for ls self-test |
| 5 |
|
| 6 |
--- |
| 7 |
ls_formatting_test.go | 2 +- |
| 8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 |
|
| 10 |
diff --git a/ls_formatting_test.goscip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/upstream/`ls_formatting_test.go`: b/ls_formatting_test.goscip-debian debian golang-github-pkg-sftp 1.13.9-1 golang-github-pkg-sftp/upstream/`ls_formatting_test.go`: |
| 11 |
index d6e5e03..c2c02b3 100644 |
| 12 |
--- a/ls_formatting_test.go |
| 13 |
+++ b/ls_formatting_test.go |
| 14 |
@@ -135,7 +135,7 @@ func runLsTestHelper(t *testing.T, result, expectedType, path string) { |
| 15 |
|
| 16 |
// username / uid (len 8, number or string) |
| 17 |
const ( |
| 18 |
|
| 19 |
+ name = "(?:[a-z_][-a-z0-9_]*)" |
| 20 |
) |
| 21 |
if ok, err := regexp.MatchString("^(?:"+number+"|"+name+")+$", user); !ok { |
| 22 |
if err != nil { |
| 23 |
|
| 24 |
2.51.0 |
| 25 |
|