Hi there --- source/passdb/pdb_smbpasswd.c.orig 2003-08-15 22:39:57.000000000 +0200 +++ source/passdb/pdb_smbpasswd.c 2003-09-30 12:44:03.000000000 +0200 @@ -261,7 +261,11 @@ setvbuf(fp, (char *)NULL, _IOFBF, 1024); /* Make sure it is only rw by the owner */ +#ifdef HAVE_FCHMOD if(fchmod(fileno(fp), S_IRUSR|S_IWUSR) == -1) { +#else + if(chmod(pfile, S_IRUSR|S_IWUSR) == -1) { +#endif DEBUG(0, ("startsmbfilepwent_internal: failed to set 0600 permissions on pa ssword file %s. \ Error was %s\n.", pfile, strerror(errno) )); pw_file_unlock(fileno(fp), lock_depth); Bye, Jojo
Applied, thanks. Jeremy.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.