- cupsDirRead wasn't working - missing wildcard for FindFirst/FindNext.
- httpAddrListen/httpAddrConnect2 were missing the socket initialization code.
- USB quirk updates (Apple #5766, Apple #5838, Apple #5843, Apple #5867)
- Web interface updates (Issue #142)
- The `ippeveprinter` tool now automatically uses an available port.
+- Fixed some Windows issues.
- Deprecated cups-config (Issue #97)
- Deprecated Kerberos (`AuthType Negotiate`) authentication (Issue #98)
- Removed support for the (long deprecated and unused) `FontPath`,
*
* This set of APIs abstracts enumeration of directory entries.
*
- * Copyright 2007-2017 by Apple Inc.
- * Copyright 1997-2005 by Easy Software Products, all rights reserved.
+ * Copyright © 2007-2021 by Apple Inc.
+ * Copyright © 1997-2005 by Easy Software Products, all rights reserved.
*
- * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*/
/*
dp->dir = INVALID_HANDLE_VALUE;
- strlcpy(dp->directory, directory, sizeof(dp->directory));
+ snprintf(dp->directory, sizeof(dp->directory), "%s\\*", directory);
/*
* Return the new directory structure...
else if (!FindNextFileA(dp->dir, &entry))
return (NULL);
+ /*
+ * Loop until we have something other than "." or ".."...
+ */
+
+ while (!strcmp(entry.cFileName, ".") || !strcmp(entry.cFileName, ".."))
+ {
+ if (!FindNextFileA(dp->dir, &entry))
+ return (NULL);
+ }
+
/*
* Copy the name over and convert the file information...
*/
/*
* HTTP address routines for CUPS.
*
- * Copyright 2007-2019 by Apple Inc.
- * Copyright 1997-2006 by Easy Software Products, all rights reserved.
+ * Copyright © 2007-2021 by Apple Inc.
+ * Copyright © 1997-2006 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
if (!addr || port < 0)
return (-1);
+ /*
+ * Make sure the network stack is initialized...
+ */
+
+ httpInitialize();
+
/*
* Create the socket and set options...
*/
/*
* HTTP address list routines for CUPS.
*
- * Copyright 2007-2018 by Apple Inc.
- * Copyright 1997-2007 by Easy Software Products, all rights reserved.
+ * Copyright © 2007-2021 by Apple Inc.
+ * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
if (cancel && *cancel)
return (NULL);
+ httpInitialize();
+
if (msec <= 0)
msec = INT_MAX;