Also take a note of servers returning full UNC printer paths although we did not
set the servername.
Guenther
for (i=0; i < count; i++) {
const char *current = NULL;
+ const char *p;
switch (level) {
case 1:
*found = true;
break;
}
+
+ p = strrchr(current, '\\');
+ if (p) {
+ if (!e.in.server) {
+ torture_warning(tctx,
+ "server returns printername %s incl. servername although we did not set servername", current);
+ }
+ p++;
+ if (strequal(p, name)) {
+ *found = true;
+ break;
+ }
+ }
}
return true;