| Summary: | Minicom does not lock | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Juergen Harms <juergen.harms> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | dmorganec |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | minicom | CVE: | |
| Status comment: | |||
| Attachments: | patch for fixing the problem as described in the comment | ||
|
Description
Juergen Harms
2011-03-06 18:21:47 CET
I have now looked at the SRPM and found a fix - see the patch in the attachment There appear to be 2 problems, both created in the file minicom-2.5/configure 1. Bad lock directory (/var/lock rather than /var/lock/tty) - configure finds the directory for the lock file by serially exploring a list of directory names hardwired into the code of configure - the lock directory is set to the first directory of that list which exists - the list of directory files (line #7720 of configure) does not contain /var/lock/tty. This is fixed by correcting the list of directory names in line #7720 and adding "/var/lock/tty" BEFORE "/var/lock" 2. Bad lock file name - minicom derives the name of the lockfile from the name of the device for serial IO - again, configure does this by scanning a list of device names and deciding on the first one that exists - that list contains /dev/ttyS1 - on my laptop ttyS0 through ttyS3 exist as nodes in /dev - therefore minicom uses ttyS1 - but, physically, my system configures its serial device on /dev/ttyS0 - before creating the lockfile, minicom checks (main.c) for the physical existance of the device and - since there is no physical /dev/ttyS1 on my machine - the creation of the lockfile fails. I patched this by modifying the name in the list of serial devices scanned by configure from /dev/ttyS1 to /dev/ttyS0. This is only a quick fix, the correct solution would be to replace the scan for node names by a scan for existing devices - I doubt whether this is worth while. There appears to be a fundamental problem in the implementation of minicom: the "configure" mechanism is not really compatible with the design of the dynamic configuration mechanism in minicom. But again, probably not worth while to invest time. There is a third thing that needs to be corrected: 3. /var/lock/tty must have ownership root:dialout (and not root:uucp). Again, somewhat problematic in case there is software around that expects the old ownership of the tty directory - but, is uucp still in use? Making these 3 changes, minicom works with locking as it should But I will start looking for another terminal emulator (- Created attachment 95 [details]
patch for fixing the problem as described in the comment
I practically never used diff and patch - I used "diff -u". I hope that this is OK
Appears to have been fixed in minicom 2.5-2 tks closing Status:
NEW =>
RESOLVED |