| Summary: | kppp prints a strange error message | ||
|---|---|---|---|
| Product: | [Unmaintained] kppp | Reporter: | Root <wolfgang.grandegger> |
| Component: | general | Assignee: | Harri Porten <porten> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | tyrerj |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Root
2001-01-01 20:00:44 UTC
> kppp is working correctly but I get a strange error message:
>
> # kppp
> Kernel supports ppp alright.
> Couldn't find interface ppp0: ë@HÃ
>
> I have built my own kppp from kdenetwork-2.0.1.tar.bz2. You can find a
> complete debug log at the end of this mail. The error message comes out
> of the function kppp/pppstats.cpp/PPPStats::ifIsUp():
>
>
> if(ioctl(s SIOCGIFFLAGS (caddr_t) &ifr) < 0) {
> // MY DEBUG MESSAGE --------------------------------
> fprintf(stderr"errno=%d strerror=%s sys_nerr=%d\n"
> errno strerror(errno) sys_nerr);
> // -------------------------------------------------
> if (sys_nerr)
> fprintf(stderr "Couldn't find interface %s: %s\n"
> unitName sys_errlist[sys_nerr]);
> ::close(s);
> s = 0;
> return 0;
> }
>
> I think the use of sys_nerr and sys_errlist is not appropriate; errno
> and
> strerror() should be used instead.
You are right. I don't know why I used those and have fixed this issue
yesterday. By coincidence I got a similar report via private mail
yesterday.
Thanks
Harri.
I don't think that this should have been closed. The problem still occurs in HEAD. See Bug #72032 -- JRT |