]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/ns.c
fix ref822 again: remove uniqarray(), fix case with many entries in 'n'.
[plan9front.git] / sys / src / cmd / ns.c
old mode 100755 (executable)
new mode 100644 (file)
index 5690096..7a305fb
@@ -4,8 +4,6 @@
 #include <auth.h>
 #include <fcall.h>
 
-#pragma        varargck        type    "P"     char*
-
 int    nsrv;
 Dir    *srv;
 Biobuf stdout;
@@ -90,7 +88,7 @@ main(int argc, char **argv)
                switch(n){
                case 2:
                        if(strcmp(av[0], "cd") == 0){
-                               Bprint(&stdout, "%s %s\n", av[0], av[1]);
+                               Bprint(&stdout, "%s %s\n", av[0], quote(av[1]));
                                continue;
                        }
                        /* fall through */