pre-fix @PatR 'SHELLERS on VMS' change
This commit is contained in:
@@ -648,11 +648,11 @@ char *name;
|
|||||||
|
|
||||||
boolean
|
boolean
|
||||||
check_user_string(optstr)
|
check_user_string(optstr)
|
||||||
char *optstr;
|
const char *optstr;
|
||||||
{
|
{
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
int pwlen;
|
int pwlen;
|
||||||
char *eop, *w;
|
const char *eop, *w;
|
||||||
char *pwname = 0;
|
char *pwname = 0;
|
||||||
|
|
||||||
if (optstr[0] == '*')
|
if (optstr[0] == '*')
|
||||||
@@ -664,7 +664,7 @@ char *optstr;
|
|||||||
if (!pwname || !*pwname)
|
if (!pwname || !*pwname)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
pwlen = (int) strlen(pwname);
|
pwlen = (int) strlen(pwname);
|
||||||
eop = eos(optstr);
|
eop = eos((char *)optstr);
|
||||||
w = optstr;
|
w = optstr;
|
||||||
while (w + pwlen <= eop) {
|
while (w + pwlen <= eop) {
|
||||||
if (!*w)
|
if (!*w)
|
||||||
|
|||||||
Reference in New Issue
Block a user