printers (rdar://33250434)
- Fixed the `cups.strings` file that is used on macOS (rdar://33287650)
- CUPS now sends the `Date` HTTP header in IPP requests (rdar://33302034)
+- The `cupsGetNamedDest` function did not use the local default printer
+ (rdar://33228500)
CHANGES IN CUPS V2.2.4
dest_name = cups_get_default(filename, defname, sizeof(defname), &instance);
}
- if (!name)
+ if (!dest_name)
{
/*
* Still not there? Try the system lpoptions file...
}
else if (!strncmp(argv[1], "ipp://", 6) || !strncmp(argv[1], "ipps://", 7))
dest = cupsGetDestWithURI(NULL, argv[1]);
+ else if (!strcmp(argv[1], "default"))
+ {
+ dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL);
+ if (dest && dest->instance)
+ printf("default is \"%s/%s\".\n", dest->name, dest->instance);
+ else
+ printf("default is \"%s\".\n", dest->name);
+ }
else
dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, argv[1], NULL);