git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DiskTool - Added LVM support
[tpg/acess2.git]
/
Usermode
/
Applications
/
login_src
/
main.c
diff --git
a/Usermode/Applications/login_src/main.c
b/Usermode/Applications/login_src/main.c
index
2bafe3b
..
e859bfe
100644
(file)
--- a/
Usermode/Applications/login_src/main.c
+++ b/
Usermode/Applications/login_src/main.c
@@
-17,8
+17,9
@@
int main(int argc, char *argv[])
int pid, uid = 0;
int status = 0;
tUserInfo *uinfo;
int pid, uid = 0;
int status = 0;
tUserInfo *uinfo;
-
- printf("\x1B[2J"); // Clear Screen
+
+ printf("\x1B[?25h"); // Re-enable the cursor
+// printf("\x1B[2J"); // Clear Screen
for(;;)
{
for(;;)
{
@@
-29,7
+30,7
@@
int main(int argc, char *argv[])
sPassword = GetPassword();
if( (uid = ValidateUser(sUsername, sPassword)) == -1 )
{
sPassword = GetPassword();
if( (uid = ValidateUser(sUsername, sPassword)) == -1 )
{
- printf("\nInvalid username or password
for '%s'\n", sUsername
);
+ printf("\nInvalid username or password
\n"
);
free(sUsername);
free(sPassword);
}
free(sUsername);
free(sPassword);
}
@@
-46,8
+47,6
@@
int main(int argc, char *argv[])
return -1;
}
return -1;
}
- printf("pid = %i\n", pid);
-
// Spawn shell in a child process
if(pid == 0)
{
// Spawn shell in a child process
if(pid == 0)
{
UCC
git Repository :: git.ucc.asn.au