Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyclades port isn't ttyc* but ttyC* #1049

Closed
michaelrsweet opened this issue Jan 10, 2005 · 1 comment
Closed

Cyclades port isn't ttyc* but ttyC* #1049

michaelrsweet opened this issue Jan 10, 2005 · 1 comment
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1-current
CUPS.org User: kmuto.debian

I received a report from Debian user.
backend/serial.c checks ttyc* for Cyclades serial port,
but this device name should be ttyC* (large capital C) (at least in Linux).

--- backend/serial.c.orig 2005-01-10 15:05:27.000000000 +0900
+++ backend/serial.c 2005-01-10 15:05:35.000000000 +0900
@@ -820,7 +820,7 @@
for (i = 0; i < 16; i ++) /* Should be up to 65536 boards... */
for (j = 0; j < 32; j ++)
{

  •  sprintf(device, "/dev/ttyc%d%c", i, funky_hex[j]);
    
  •  sprintf(device, "/dev/ttyC%d%c", i, funky_hex[j]);
    
    if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0)
    {
    close(fd);

Thanks,

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

I've updated things to look for both lowercase and uppercase filenames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant