uh, escaping the escape of last commit ;)
This commit is contained in:
parent
c32cea67da
commit
1836e840e0
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.6 2003-04-03 22:30:45 lkarsten Exp $
|
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.7 2003-04-03 22:37:26 lkarsten Exp $
|
||||||
*
|
*
|
||||||
* mysql-useradm.c
|
* mysql-useradm.c
|
||||||
*
|
*
|
||||||
|
@ -179,7 +179,7 @@ list(MYSQL *pmysql)
|
||||||
struct passwd *p;
|
struct passwd *p;
|
||||||
|
|
||||||
p = getpwuid(getuid());
|
p = getpwuid(getuid());
|
||||||
sprintf(query, "select user from user where user='%s' or user like '%s\_%%'",
|
sprintf(query, "select user from user where user='%s' or user like '%s\\_%%'",
|
||||||
p->pw_name, p->pw_name);
|
p->pw_name, p->pw_name);
|
||||||
|
|
||||||
numgroups = 0;
|
numgroups = 0;
|
||||||
|
@ -187,7 +187,7 @@ list(MYSQL *pmysql)
|
||||||
usrgroups = get_group_names(&numgroups);
|
usrgroups = get_group_names(&numgroups);
|
||||||
cp = usrgroups;
|
cp = usrgroups;
|
||||||
while (*cp) {
|
while (*cp) {
|
||||||
sprintf(&query[strlen(query)], " or user='%s' or user like '%s\_%%'", *cp, *cp);
|
sprintf(&query[strlen(query)], " or user='%s' or user like '%s\\_%%'", *cp, *cp);
|
||||||
cp++;
|
cp++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue