Comments (8)
This was fixed in #189
Sorry I'd forgotten about this issue - your comment about configure
explains my question why it only started happening.
from dropbear.
What platform is that compiling on?
from dropbear.
It's mips with uClibc. The full output: build.txt
I noticed:
checking for struct utmpx.ut_syslen... no
checking for struct utmpx.ut_addr... no
checking for struct utmpx.ut_time... no
from dropbear.
Hm, loginrec.c hasn't changed for a long time, and OpenSSH's copy (where it came from) still has the same thing. So I guess that code path doesn't usually get hit. Perhaps something strange is going on with configure. Did it work OK in previous Dropbear versions? I can't think what would have changed.
from dropbear.
Forgot to add, which exact toolchain are you using?
from dropbear.
This for FritzBox 7590: https://github.com/Freetz-NG/freetz-ng
With previous 2020.81 it worked
from dropbear.
A diff of the configure output:
-2020.81
+2022.82
-checking for ANSI C header files... (cached) yes
+checking sys/prctl.h usability... yes
+checking sys/prctl.h presence... yes
+checking for sys/prctl.h... yes
-checking whether time.h and sys/time.h may both be included... (cached) yes
-checking if your system defines UTMPX_FILE... no
+checking if your system defines UTMPX_FILE... yes
-checking if your system defines WTMPX_FILE... no
+checking if your system defines WTMPX_FILE... yes
+checking for fexecve... yes
+config.status: creating test/Makefile
from dropbear.
So it worked with .81 because wtmpx was not found and thus disabled in dropbear, it was never used. Configure of .82 find the file and enables it and fails.
Is this part of dropbear's "loginrec.c" okay?
static int
utmpx_perform_login(struct logininfo *li)
{
struct utmpx utx;
##### ^^^
construct_utmpx(li, &utx);
# ifdef UTMPX_USE_LIBRARY
if (!utmpx_write_library(li, &utx)) {
##### ^^^
dropbear_log(LOG_WARNING, "utmpx_perform_login: utmp_write_library() failed");
return 0;
}
# else
if (!utmpx_write_direct(li, &ut)) {
##### ^^
dropbear_log(LOG_WARNING, "utmpx_perform_login: utmp_write_direct() failed");
return 0;
}
# endif
return 1;
}
Thats what the error above shows
from dropbear.
Related Issues (20)
- There is no command to limit the simultaneous connection of users HOT 2
- Log improvement: name the key
- Bad `authorized_keys` is not reported in non-debug mode HOT 5
- dropbear 22.83 patch error in lede/optnwrt HOT 1
- Minor clarification for DEBUG_TRACE HOT 1
- dbclient can't connect to embedded dropbear server HOT 4
- sshkey file layout HOT 1
- dropbear for android error ` fstatat64(AT_FDCWD, "//.ssh` HOT 1
- Can I Replace LibTomCrypt with OpenSSL? HOT 3
- Ability to configure the `authorized_keys` file HOT 2
- Error if I use scp from same network with python paramiko HOT 2
- cannot login just with private key HOT 2
- Long time to authorize HOT 15
- Make dropbearkey as ssh-keygen HOT 1
- The terminal process cannot be closed correctly HOT 5
- release request (terrapin) HOT 3
- How do you change the port number for SSH server? Where is the dropbear configuration file located? HOT 2
- Dropbear limited scalability HOT 1
- how to set the unlock time for user using dropbear? HOT 2
- -static-pie: Aiee, segfault! You should probably report this as a bug to the developer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropbear.