[minicom-Bugs][312626] Config file behaviour wrong
minicom-bugs at alioth.debian.org
minicom-bugs at alioth.debian.org
Tue Jul 20 22:38:04 UTC 2010
Bugs item #312626, was changed at 2010-07-12 13:43 by Adam Lackorzynski
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=312626&group_id=30018
>Status: Closed
Priority: 3
Submitted By: Robert v. Knobloch (robertvonknobloch-guest)
Assigned to: Nobody (None)
Summary: Config file behaviour wrong
Category: None
Group: None
Resolution: None
Initial Comment:
Upgrading from 2.3 to 2.4 on Opensuse11.0 I find:
Prompts for minicom -s (OK minirc was in /etc - now wants to be in /usr/local/etc - although the man page still states /etc) but when invoked by root with -s still gives error of missing minrc.dfl, please invoke as root with -s (I copied the file across to get it working).
When calling as normal user with "minicom abcd", does not see the user's .minirc.* files and prompts again for root to create a global "minirc.abcd".
These bugs can be worked around by judicious copy of minrc files.
Bob von Knobloch
----------------------------------------------------------------------
>Comment By: Adam Lackorzynski (al-guest)
Date: 2010-07-21 00:38
Message:
There's no date set yet for a release but I'd guess sometime soon. Also the repo code should be reasonable stable....
----------------------------------------------------------------------
Comment By: Robert v. Knobloch (robertvonknobloch-guest)
Date: 2010-07-19 21:32
Message:
The local file is not scanned at all.
However if a new version is imminent, it is pointless to bug-fix the old one.
When is the expected release? I can find nothing about this on the web.
Many thanks,
Robert
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 2010-07-19 19:09
Message:
In version 2.4 the behavior is indeed like described and has been so for some time in minicom (that a local config is only scanned after a global one). In the upcoming 2.5 version (and thus in the hg repo) this code has already been removed and this behavior is gone. Adam
----------------------------------------------------------------------
Comment By: Robert v. Knobloch (robertvonknobloch-guest)
Date: 2010-07-19 09:59
Message:
OK I've changed minicom.c, thanks
This fixes the initial root setup problem, but now if minicom is called with a setup file parameter, e.g. "minicom ttyS2" (where ttyS2 should be the extension of the user's local minirc file) minicom reports:
minicom: there is no global configuration file /usr/local/etc/minirc.ttyS2
Ask your sysadmin to create one (with minicom -s).
So it seems not to be looking in the user's homedir.
Robert
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 2010-07-16 10:13
Message:
In minicom.c there's a call to read_parms();, changing this with
if (!dosetup)
read_parms();
should fix it.
Since the code that exits is already gone in the repository version this change should not be needed there.
----------------------------------------------------------------------
Comment By: Robert v. Knobloch (robertvonknobloch-guest)
Date: 2010-07-14 09:36
Message:
Sorry, not used to your web interface, attached the log file otherwise hard to read.
OK Freshly compiled 2.4 from the source tgz
minicom -s (as root) gave:
minicom: there is no global configuration file /usr/local/etc/minirc.dfl Ask your sysadmin to create one (with minicom -s).
so, still as root: strace -o /tmp/log minicom -s minicom:
there is no global configuration file /usr/local/etc/minirc.dfl Ask your sysadmin to create one (with minicom -s).
- Robert
----------------------------------------------------------------------
Comment By: Robert v. Knobloch (robertvonknobloch-guest)
Date: 2010-07-14 09:30
Message:
OK
Freshly compiled 2.4 from the source tgz
minicom -s (as root) gave:
minicom: there is no global configuration file /usr/local/etc/minirc.dfl
Ask your sysadmin to create one (with minicom -s).
so, still as root:
strace -o /tmp/log minicom -s
minicom: there is no global configuration file /usr/local/etc/minirc.dfl
Ask your sysadmin to create one (with minicom -s).
/tmp/log:
execve("/usr/local/bin/minicom", ["minicom", "-s"], [/* 60 vars */]) = 0
brk(0) = 0x807a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=260556, ...}) = 0
mmap2(NULL, 260556, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ec2000
close(3) = 0
open("/lib/libncurses.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\262\0\0004\0\0\0"..., 512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ec1000
fstat64(3, {st_mode=S_IFREG|0755, st_size=229848, ...}) = 0
mmap2(NULL, 222920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e8a000
fadvise64(3, 0, 222920, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7ebb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30) = 0xb7ebb000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Pg\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1410320, ...}) = 0
mmap2(NULL, 1320528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d47000
fadvise64(3, 0, 1320528, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7e84000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13d) = 0xb7e84000
mmap2(0xb7e87000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e87000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11060, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d43000
fadvise64(3, 0, 12408, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7d45000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7d45000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d42000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d426c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\224\314jQ", 4) = 4
close(3) = 0
mprotect(0xb7d45000, 4096, PROT_READ) = 0
mprotect(0xb7e84000, 8192, PROT_READ) = 0
mprotect(0xb7ebb000, 8192, PROT_READ) = 0
mprotect(0x806c000, 4096, PROT_READ) = 0
mprotect(0xb7f1d000, 4096, PROT_READ) = 0
munmap(0xb7ec2000, 260556) = 0
brk(0) = 0x807a000
brk(0x809b000) = 0x809b000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f01000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f01000, 4096) = 0
open("/usr/lib/locale/en_GB.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_GB.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=254076, ...}) = 0
mmap2(NULL, 254076, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ec3000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26040, ...}) = 0
mmap2(NULL, 26040, PROT_READ, MAP_SHARED, 3, 0) = 0xb7d3b000
close(3) = 0
getuid32() = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
send(3, "\2\0\0\0\v\0\0\0\7\0\0\0passwd\0", 19, MSG_NOSIGNAL) = 19
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1
recvmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"passwd\0", 7}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=16, {cmsg_len=16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {4}}, msg_flags=0x40000000 /* MSG_??? */}, 0x40000000 /* MSG_??? */) = 15
mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) = 0xb7d06000
close(4) = 0
close(3) = 0
open("/usr/local/etc/minirc.dfl", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "minicom: there is no global conf"..., 73) = 73
write(2, "Ask your sysadmin to create one "..., 51) = 51
exit_group(1) = ?
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 2010-07-13 23:36
Message:
Could you please describe the problem in more detail? I cannot identify any issue when trying it out myself. Best would be if you could prefix your minicom call with strace -o /tmp/log and make the log file available. Thanks.
----------------------------------------------------------------------
Comment By: Robert v. Knobloch (robertvonknobloch-guest)
Date: 2010-07-13 10:02
Message:
Accepted that compiling from source (I did) gives different paths from the Distro version but that doesn't explain why root could not create a first minirc, neither why users ~/.minirc* was ignored ??
----------------------------------------------------------------------
Comment By: Adam Lackorzynski (al-guest)
Date: 2010-07-13 09:33
Message:
When minicom looks into the wrong config directory this sound like a packaging issue. configure should be called with --sysconfdir=/etc/minicom (or --sysconfdir=/etc to have everything in /etc directory but that's not recommended). /usr/local/etc is the default when nothing is chosen and minicom is installed to /usr/local.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=312626&group_id=30018
More information about the minicom-devel
mailing list