Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retiring certain usernames. #1

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions libmisc/chkname.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#ident "$Id$"

#include <string.h>
#include <ctype.h>
#include "defines.h"
#include "chkname.h"
Expand All @@ -56,6 +57,22 @@ static bool is_valid_name (const char *name)
return false;
}

/*
* To recognize their contributions to the art, science and practice
* of computing, the following usernames have been retired.
*
* dmr - Dennis MacAlistair Ritchie (September 9, 1941 - October 12, 2011)
* mrc - Mark Reed Crispin (July 19, 1956 - December 28, 2012)
* jmc - John McCarthy (September 4, 1927 – October 24, 2011)
*
*/

if (strcmp(name, "dmr") ||
strcmp(name, "mcr") ||
strcmp(name, "jmc")) {
return false;
}

while ('\0' != *++name) {
if (!(( ('a' <= *name) && ('z' >= *name) ) ||
( ('0' <= *name) && ('9' >= *name) ) ||
Expand Down