Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d06d08f authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "unzip: add -Z for "zipinfo mode"." am: f16a9816

am: b4380b93

Change-Id: I0182b73cf420c160f21a441a19cae9e07840d9e2
parents 2e85d2a1 b4380b93
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -435,6 +435,12 @@ int main(int argc, char* argv[]) {
  };

  if (role == kUnzip) {
    // `unzip -Z` is "zipinfo mode", so in that case just restart...
    if (argc > 1 && !strcmp(argv[1], "-Z")) {
      argv[1] = const_cast<char*>("zipinfo");
      return main(argc - 1, argv + 1);
    }

    int opt;
    while ((opt = getopt_long(argc, argv, "-d:hlnopqvx", opts, nullptr)) != -1) {
      switch (opt) {