diff --git a/src/bin/login/main.c b/src/bin/login/main.c index 68891f0..72cf48d 100644 --- a/src/bin/login/main.c +++ b/src/bin/login/main.c @@ -112,44 +112,30 @@ gets((char *)&userName); printf("Password: "); pgets((char *)&passWord); - printf("a"); for (i=0x0;i<(4096/sizeof(struct passwd));i++) { - printf("b"); if (0x0 == strcmp(userName,data[i].username)) { - printf("c"); if (0x0 == strcmp(passWord,data[i].password)) { - printf("d"); shellPid = fork(); if (shellPid == 0x0) { - printf("e"); if (setuid(data[i].uid) != 0x0) { printf("Set UID Failed\n"); } - printf("f"); if (setgid(data[i].gid) != 0x0) { printf("Set GID Failed\n"); } - printf("g"); fd = 0x0; - printf("g.-1"); fd = fopen("sys:/motd","r"); - printf("g.-2"); //if ((fd = fopen("sys:/motd","r")) == 0x0) { if (fd == 0x0) { printf("No MOTD"); } else { - printf("g.1"); fread(data2,384,1,fd); - printf("g.2"); printf("%s\n",data2); } - printf("h"); fclose(fd); - printf("i"); //chdir(data[i].path); chdir("sys:/"); - printf("j"); exec(data[i].shell,0x0,0x0); printf("Error: Problem Starting Shell\n"); exit(-1); diff --git a/src/sys/Makefile b/src/sys/Makefile index abec87c..e1ffe19 100644 --- a/src/sys/Makefile +++ b/src/sys/Makefile @@ -84,7 +84,7 @@ (cd pci;make clean) (cd sde;make clean) (cd devfs;make clean) - (cd net;make clean) + #(cd net;make clean) (cd mpi;make clean) (cd kmods;make clean) (cd ufs;make clean)