uh, escaping the escape of last commit ;)

This commit is contained in:
Lasse Karstensen 2003-04-03 22:37:26 +00:00
parent c32cea67da
commit 1836e840e0
1 changed files with 3 additions and 3 deletions

View File

@ -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++;
} }