|
|
* Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>, | * Copyright (C) 1996 Jeff Noxon <jeff@router.patch.net>, |
* Copyright (C) 1996-1999 Guy Maor <maor@debian.org> | * Copyright (C) 1996-1999 Guy Maor <maor@debian.org> |
* Copyright (C) 2002, 2003, 2004, 2005 Clint Adams <schizo@debian.org> | * Copyright (C) 2002, 2003, 2004, 2005 Clint Adams <schizo@debian.org> |
|
* Copyright (C) 2005 Gentoo Foundation <base-system@gentoo.org> |
* | * |
* This is free software; see the GNU General Public License version 2 | * This is free software; see the GNU General Public License version 2 |
* or later for copying conditions. There is NO warranty. | * or later for copying conditions. There is NO warranty. |
|
|
"\nCopyright (C) 1994 Ian Jackson, Copyright (C) 1996 Jeff Noxon.\n" | "\nCopyright (C) 1994 Ian Jackson, Copyright (C) 1996 Jeff Noxon.\n" |
"Copyright (C) 1996,1997,1998,1999 Guy Maor\n" | "Copyright (C) 1996,1997,1998,1999 Guy Maor\n" |
"Copyright (C) 2002, 2003, 2004, 2005 Clint Adams\n" | "Copyright (C) 2002, 2003, 2004, 2005 Clint Adams\n" |
|
"Copyright (C) 2005 Gentoo Foundation\n" |
"This is free software; see the GNU General Public License version 2\n" | "This is free software; see the GNU General Public License version 2\n" |
"or later for copying conditions. There is NO warranty.\n"); | "or later for copying conditions. There is NO warranty.\n"); |
exit(0); | exit(0); |
|
|
return !regexec(&tradre, c, 0, NULL, 0); | return !regexec(&tradre, c, 0, NULL, 0); |
} | } |
else { | else { |
if (regcomp(&classicalre, "^[a-zA-Z0-9_-]+$", REG_EXTENDED | REG_NOSUB)) { |
if (regcomp(&classicalre, "^[a-zA-Z0-9_-][a-zA-Z0-9._-]+$", REG_EXTENDED | REG_NOSUB)) { |
error("regex failure"); | error("regex failure"); |
exit(1); | exit(1); |
} | } |