From: Art Cancro Date: Thu, 23 Feb 2012 16:31:46 +0000 (-0500) Subject: Cleanup and added funny joke haha X-Git-Tag: v8.11~174 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3194caa9d0b019154b10c3213882082709cc646b Cleanup and added funny joke haha --- diff --git a/ctdlsh/src/ctdlsh.h b/ctdlsh/src/ctdlsh.h index db607975a..77ca9e7e9 100644 --- a/ctdlsh/src/ctdlsh.h +++ b/ctdlsh/src/ctdlsh.h @@ -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 #include #include diff --git a/ctdlsh/src/main.c b/ctdlsh/src/main.c index 33ccbda4f..f996e68ec 100644 --- a/ctdlsh/src/main.c +++ b/ctdlsh/src/main.c @@ -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; diff --git a/ctdlsh/src/passwd.c b/ctdlsh/src/passwd.c index 51936f37a..2b914abb2 100644 --- a/ctdlsh/src/passwd.c +++ b/ctdlsh/src/passwd.c @@ -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); }