about summary refs log tree commit diff
path: root/third_party/nix/src/build-remote/build-remote.cc
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-04T00·33-0400
committerglittershark <grfn@gws.fyi>2020-08-04T02·15+0000
commit0aff4c256c774ab9becb23ce7bbe0a8452eb0372 (patch)
treef2cd7caa89926de413ec31ecc8d4aabdad75d50c /third_party/nix/src/build-remote/build-remote.cc
parent09cb41b7ac6ff436fc7554cfc59745276c4515ed (diff)
fix(3p/nix): Don't assert on argc count for build-remote r/1576
This executable doesn't appear to ever actually look at argv, so
throwing an error if argc is wrong seems kinda silly.

Change-Id: Iabc9dad785d4c99be9e8fd4ecd954d38b876cecd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1633
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/build-remote/build-remote.cc')
-rw-r--r--third_party/nix/src/build-remote/build-remote.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/third_party/nix/src/build-remote/build-remote.cc b/third_party/nix/src/build-remote/build-remote.cc
index 0aeadd0510d2..60878e2e6eb8 100644
--- a/third_party/nix/src/build-remote/build-remote.cc
+++ b/third_party/nix/src/build-remote/build-remote.cc
@@ -53,10 +53,6 @@ static int _main(int argc, char* argv[]) {
     unsetenv("DISPLAY");
     unsetenv("SSH_ASKPASS");
 
-    if (argc != 2) {
-      throw UsageError("called without required arguments");
-    }
-
     FdSource source(STDIN_FILENO);
 
     /* Read the parent's settings. */