* Fixed buffer overrun problems in cmd_rchg(), cmd_hchg(), and cmd_uchg()
authorArt Cancro <ajc@citadel.org>
Wed, 3 Nov 1999 04:01:23 +0000 (04:01 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 3 Nov 1999 04:01:23 +0000 (04:01 +0000)
* Removed my email address as the feedback content from the docs; replaced
  it with a reference to the Citadel/UX web site.

citadel/ChangeLog
citadel/README.txt
citadel/citserver.c
citadel/copyright.txt
citadel/install.txt
citadel/sysop.txt
citadel/techdoc/hack.txt
citadel/techdoc/session.txt
citadel/utils.txt

index e1e0147de26d84a7a7464c60b61b4c6358a5e4bf..38bacd21c573bf68fdcd8b71243e9fa057497fef 100644 (file)
@@ -1,4 +1,9 @@
 $Log$
+Revision 1.411  1999/11/03 04:01:20  ajc
+* Fixed buffer overrun problems in cmd_rchg(), cmd_hchg(), and cmd_uchg()
+* Removed my email address as the feedback content from the docs; replaced
+  it with a reference to the Citadel/UX web site.
+
 Revision 1.410  1999/11/02 19:51:23  ajc
 * Fixed timeout problem for remote client sessions (all timeouts were set to
   1 second ... probably a temporary hack that was missed in the cleanup)
@@ -1417,4 +1422,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
-
index b4c6e405c1a67ded94eff724b0d33dd64c28acd7..eeed2c12d2dd0c973878ef1e227e1af936127cea 100644 (file)
@@ -1,6 +1,8 @@
  Citadel/UX release notes -- version 5.50
+  
+ ALL FURTHER CHANGES WILL BE IN THE "ChangeLog" FILE.
  
- Please see the file "ChangeLog" for more information.
+ Please view that file for further information.
  
  
 
@@ -184,6 +186,12 @@ off the same code.  I've looked around at the various mods people have made
 to Citadel/UX and tried to implement the most-often-added and most-requested
 features to the stock distribution.  If there's a feature you want/need that
 still isn't here, drop me a line and I'll see what I can do about adding it
-to the next release.  I can be contacted at ajc@uncnsrd.mt-kisco.ny.us or
-simply log on to my BBS at uncnsrd.mt-kisco.ny.us (internet) or 914-244-3252
-(dialup).
+to the next release.
+
+
+
+
+ For more information, visit the Citadel/UX web site at UNCENSORED! BBS
+ http://uncnsrd.mt-kisco.ny.us
+
+
index a2ee6e7e8de966c2fbed8349bda7b517fc1a87dd..0f96bf0686c25664e667996b97ad8f6d51fa1c18 100644 (file)
@@ -275,7 +275,7 @@ void cmd_info(void) {
 
 void cmd_rchg(char *argbuf)
 {
-       char newroomname[ROOMNAMELEN];
+       char newroomname[256];
 
        extract(newroomname, argbuf, 0);
        newroomname[ROOMNAMELEN-1] = 0;
@@ -291,10 +291,9 @@ void cmd_rchg(char *argbuf)
 
 void cmd_hchg(char *argbuf)
 {
-       char newhostname[25];
+       char newhostname[256];
 
        extract(newhostname, argbuf, 0);
-       newhostname[24] = 0;
        if (strlen(newhostname) > 0) {
                safestrncpy(CC->fake_hostname, newhostname,
                        sizeof(CC->fake_hostname) );
@@ -305,29 +304,36 @@ void cmd_hchg(char *argbuf)
        cprintf("%d OK\n", OK);
 }
 
-void cmd_uchg(char *newusername)
+void cmd_uchg(char *argbuf)
 {
-   if (CC->usersupp.axlevel < 6) 
-   {
-      cprintf("%d You must be an Aide to use UCHG.\n",
-               ERROR+HIGHER_ACCESS_REQUIRED);
-      return;
-   }
-   if ((newusername) && (newusername[0]))
-   {
-      CC->cs_flags &= ~CS_STEALTH;
-      memset(CC->fake_username, 0, 32);
-      if (strncasecmp(newusername, CC->curr_user, strlen(CC->curr_user)))
-         safestrncpy(CC->fake_username, newusername, sizeof(CC->fake_username));
-   }
-   else
-   {
-      CC->fake_username[0] = '\0';
-      CC->cs_flags |= CS_STEALTH;
-   }
-   cprintf("%d\n",OK);
+
+       char newusername[256];
+
+       extract(newusername, argbuf, 0);
+
+       if (CC->usersupp.axlevel < 6) {
+               cprintf("%d You must be an Aide to masquerade your name.\n",
+                       ERROR+HIGHER_ACCESS_REQUIRED);
+               return;
+       }
+
+       if (strlen(newusername) > 0) {
+               CC->cs_flags &= ~CS_STEALTH;
+               memset(CC->fake_username, 0, 32);
+               if (strncasecmp(newusername, CC->curr_user,
+                               strlen(CC->curr_user)))
+                       safestrncpy(CC->fake_username, newusername,
+                               sizeof(CC->fake_username));
+       }
+       else {
+               CC->fake_username[0] = '\0';
+               CC->cs_flags |= CS_STEALTH;
+       }
+       cprintf("%d\n",OK);
 }
 
+
+
 /*
  * returns an asterisk if there are any express messages waiting,
  * space otherwise.
index f66d30b21e8c02128c65ae3b4c6ccac689c8f478..5f011b9c824ee6ed68dd64ed84cfbf31f79b2f3b 100644 (file)
@@ -29,10 +29,8 @@ ICQ client code derived from ICQLIB written by:
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-  
-    Feedback concerning Citadel/UX goes to: ajc@uncnsrd.mt-kisco.ny.us 
  
-    The home of Citadel/UX is UNCENSORED! BBS:
-                    telnet://uncnsrd.mt-kisco.ny.us
                   http://uncnsrd.mt-kisco.ny.us
-                    914-244-3252 (modem)
+ For more information, visit the Citadel/UX web site at UNCENSORED! BBS
+ http://uncnsrd.mt-kisco.ny.us
+
index 4a9aecbb4f3be8475ee1bee4a3b9c012d3b0bd84..926b19e03ccf9bfbf2c7ee85c819215404ac1b1c 100644 (file)
@@ -344,7 +344,8 @@ other.  Please refer these questions to your local sendmail wizard.
  
  THE PEANUT GALLERY
   
-   That's just about all the information you need to install the system. If
-you have any comments, suggestions, bomb threats, etc., send them to
-ajc@uncnsrd.mt-kisco.ny.us or call Uncensored Communications Group BBS at
-(914) 244-3252 (modem) or uncnsrd.mt-kisco.ny.us (Internet).
+   That's just about all the information you need to install the system.
+ For more information, visit the Citadel/UX web site at UNCENSORED! BBS
+ http://uncnsrd.mt-kisco.ny.us
+
+
index 0058eff90c8b3bf1809acab1da6ae6ea25812568..c41596a861d76d153b100ef8340e7736082f4763 100644 (file)
@@ -260,7 +260,7 @@ course, if you still have trouble, you could always bug ^sysadm about it!"
    
         
    CONCLUSION
-  
-   Comments from the Peanut Gallery should be directed to (at) my email
-address ajc@uncnsrd.mt-kisco.ny.us, or call UNCENSORED! BBS at 914-244-3252
-(modem) or uncnsrd.mt-kisco.ny.us (Internet).
+   
+ For more information, visit the Citadel/UX web site at UNCENSORED! BBS
+ http://uncnsrd.mt-kisco.ny.us
+
index 52335ddd94b36b965cc7286aa5cd35b7b54debe1..889d562006a276bdaa1d0ca1e76c5d63c0e5b344 100644 (file)
@@ -1,5 +1,5 @@
  hack.txt for Citadel/UX
written by Art Cancro (ajc@uncnsrd.mt-kisco.ny.us)
(possibly a little out of date)
    
    Much of this document is borrowed from the original hack.doc from
 Citadel-CP/M and Citadel-86, because many of the concepts are the same.  Hats
index bd94c8527e4ebaaba0201aec3ba14c9d2aadf214..490375bab8bbd8953044d329a30fc6378fcc1642 100644 (file)
@@ -23,7 +23,8 @@ the same name but perform different functions.  If you don't coordinate new
 developments ahead of time, please at least send in an e-mail documenting
 what you did, so that your new commands can be added to this document.
  
- The coordinator of the Citadel/UX project is Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>.
+ The coordinator of the Citadel/UX project is Art Cancro
+<ajc@uncnsrd.mt-kisco.ny.us>.
     
   
  CONNECTING TO A SERVER
index 4584e0a9eee7d2af15698da5159ef8c1347cb188..ead1f1eb54d593a02d29ee7e67da0deab39a2403 100644 (file)
@@ -120,6 +120,7 @@ properly restricted.
   
   --------------------------------------------------------------------------
    
-   That should cover all of the included utilities. Comments, suggestions,
-etc. may be sent to ajc@uncnsrd.mt-kisco.ny.us or call UNCENSORED! BBS at
-(914) 244-3252 (modem) or uncnsrd.mt-kisco.ny.us (Internet).
+   That should cover all of the included utilities.
+ For more information, visit the Citadel/UX web site at UNCENSORED! BBS
+ http://uncnsrd.mt-kisco.ny.us
+