How unstable is the CVS source?: smbpasswd
Bertl
bs at vpnet.at
Tue Jul 6 16:39:04 GMT 1999
Hi!
I'm not really sure, but I think I was able to boil
down the problem with smbpasswd to a little testproggy:
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
main()
{
struct passwd *ret;
ret = getpwnam("stephan");
if (ret)
{
printf("ret->pw_passwd:%s\n",ret->pw_passwd);
free(ret->pw_passwd);
puts("holladrio...");
}
}
compiled with:
gcc -o a a.c
gives the following output:
$./a
ret->pw_passwd:x
Segmentation fault
in smbpasswd this only happens when we can get a
shadow-passwd entry (when we run as root)...
I don't know if this is a bug in libc or in samba...
hope this helps...
More information about the samba-ntdom
mailing list