ash: in tryexec(), ensure we don't try to run embedded scripts as applets
[oweals/busybox.git] / procps / pwdx.c
index 84802bbcd5b83c7a289493c9aea619472d53a1ac..6009e2aa3783057f35425dc0317868e27dc312c7 100644 (file)
@@ -7,7 +7,6 @@
  *
  * Licensed under GPLv2, see file LICENSE in this source tree.
  */
-
 //config:config PWDX
 //config:      bool "pwdx (3.5 kb)"
 //config:      default y
@@ -28,8 +27,7 @@
 int pwdx_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int pwdx_main(int argc UNUSED_PARAM, char **argv)
 {
-       opt_complementary = "-1";
-       getopt32(argv, "");
+       getopt32(argv, "^" "" "\0" "-1");
        argv += optind;
 
        do {