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
|
||||
*
|
||||
|
@ -179,7 +179,7 @@ list(MYSQL *pmysql)
|
|||
struct passwd *p;
|
||||
|
||||
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);
|
||||
|
||||
numgroups = 0;
|
||||
|
@ -187,7 +187,7 @@ list(MYSQL *pmysql)
|
|||
usrgroups = get_group_names(&numgroups);
|
||||
cp = usrgroups;
|
||||
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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue