Cleanup and added funny joke haha
authorArt Cancro <ajc@uncensored.citadel.org>
Thu, 23 Feb 2012 16:31:46 +0000 (11:31 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Thu, 23 Feb 2012 16:31:46 +0000 (11:31 -0500)
ctdlsh/src/ctdlsh.h
ctdlsh/src/main.c
ctdlsh/src/passwd.c

index db607975acd250146c85482abefb8acd9c120562..77ca9e7e9db5699c488d7d9a3f6e33442a544fad 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * main header file for ctdlsh
+ *
+ * Copyright (c) 2009-2012 by the citadel.org team
+ * This program is open source software, cheerfully made available to
+ * you under the terms of the GNU General Public License version 3.
+ */
+
 #include <config.h>
 #include <stdlib.h>
 #include <unistd.h>
index 33ccbda4fae732e90f40c1040e429da4f4840d87..f996e68ec756e2c4b55e16b43fdfa6737818623e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (c) 2009-2011 by Art Cancro and citadel.org
+ * (c) 2009-2012 by Art Cancro and citadel.org
  * This program is released under the terms of the GNU General Public License v3.
  */
 
@@ -80,7 +80,6 @@ char **ctdlsh_completion(const char *text, int start, int end) {
 }
 
 
-
 void do_main_loop(int server_socket) {
        char *cmd = NULL;
        char prompt[1024];
@@ -125,6 +124,10 @@ void do_main_loop(int server_socket) {
        }
 }
 
+
+/*
+ * If you don't know what main() does by now you probably shouldn't be reading this code.
+ */
 int main(int argc, char **argv)
 {
        int server_socket = 0;
index 51936f37af80d995fab06a2d12ff2866f29bdb69..2b914abb205062d5ad8b420dfdfe265aba7b8f0d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (c) 2009-2011 by Art Cancro and citadel.org
+ * (c) 2009-2012 by Art Cancro and citadel.org
  * This program is released under the terms of the GNU General Public License v3.
  */
 
@@ -27,7 +27,9 @@ int cmd_passwd(int server_socket, char *cmdbuf) {
        p2 = readline("Enter it again: ");
 
        if (strcmp(p1, p2)) {
-               fprintf(stderr, "Passwords do not match.  Account password is unchanged.\n");
+               fprintf(stderr, "The passwords you entered do not match."
+                               "The account password remains unchanged.\n"
+               );
                return(cmdret_error);
        }