From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200302271708.h1RH8aM21825@augusta.math.psu.edu> To: 9fans@cse.psu.edu Cc: 9trouble@plan9.bell-labs.com From: Dan Cross Subject: [9fans] Oh, I almost forgot... Date: Thu, 27 Feb 2003 12:08:36 -0500 Topicbox-Message-UUID: 74f4f07c-eacb-11e9-9e20-41e7f4b1d025 In changing around newns(), I added a command to help in debugging. It's turned out to be fairly useful generally, and I've installed it as auth/newns. Here's the source: - Dan C. #include #include #include void usage(void) { fprint(2, "Usage: newns [ -f file ] command.\n"); exits("usage"); } void main(int argc, char *argv[]) { char *nsfile; nsfile = "/lib/namespace"; ARGBEGIN { case 'f': nsfile = ARGF(); break; default: usage(); break; } ARGEND if (argc == 0) usage(); newns(getuser(), nsfile); exec(argv[0], argv); sysfatal("exec: %s: %r", argv[0]); }