mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
17 lines
593 B
Diff
17 lines
593 B
Diff
diff --git a/src/client.c b/src/client.c
|
|
index 751406b..b45d89c 100644
|
|
--- a/src/client.c
|
|
+++ b/src/client.c
|
|
@@ -3558,9 +3558,9 @@ connect_to_pserver (cvsroot_t *root, struct buffer **to_server_p,
|
|
* code.
|
|
*/
|
|
read_line_via (from_server, to_server, &read_buf);
|
|
- sscanf (read_buf, "%s %d", write_buf, &codenum);
|
|
+ count = sscanf (read_buf, "%*s %d", &codenum);
|
|
|
|
- if ((codenum / 100) != 2)
|
|
+ if (count != 1 || (codenum / 100) != 2)
|
|
error (1, 0, "proxy server %s:%d does not support http tunnelling",
|
|
root->proxy_hostname, proxy_port_number);
|
|
free (read_buf);
|