--- epm-4.2.old/epm.c +++ epm-4.2/epm.c @@ -60,6 +60,7 @@ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { + int pnc; int i; /* Looping var */ int strip; /* 1 if we should strip executables */ struct utsname platform; /* UNIX name info */ @@ -409,11 +410,14 @@ usage(); } - for (i = 0; prodname[i]; i ++) - if (!isalnum(prodname[i] & 255)) + for (i = 0; (pnc = 0xFF & (int) prodname [i]) != 0; i++) { - puts("epm: Product names should only contain letters and numbers!"); - break; + if (!isalnum (pnc) && + (pnc != '_') && (pnc != '-') && (pnc != '.')) + { +puts ("epm: Product names should only contain 0-9A-Za-z_-."); +break; + } } if (!listname[0])