password.c:
authorLuke Leighton <lkcl@samba.org>
Wed, 29 Apr 1998 11:00:12 +0000 (11:00 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 29 Apr 1998 11:00:12 +0000 (11:00 +0000)
commit315e26c23abf7137684bf084c825ad241076132e
treee431658a6fdb694d538f1b3595cc1675c609f259
parent17b94a7084621b3f0106dd4d3386f05cdfc56d19
password.c:

added become_root / unbecome_root around the get machine account password.

smbpass.c:

cleaning up code.

- turning if (BOOL_expr == False) into if (BOOL_expr)
  what if you test if (BOOL_expr == True) and someone defines
  True to be -1 on one system and 1 on another?  or if you get
  inconsistent return results between developers

- removed if ((FILE*) == 0) and made this if ((FILE*) == NULL) -
  cannot assume that NULL is zero integer.  plus there are typecast
  issues to deal with

- removed return (ret == 0) ? True : False and made this return ret == 0
  rely on the compiler to return correct BOOL value: not all developers
  will return True or False #defines: stick with BOOL test (non-zero).

- removed if (ret == False) replaced with if (!ret)

- bug where instead of if (sizeof(pstring)-len-len-6 < 0) it had a
  boolean test if (pstring-len-len-6).

- removed "." after debugging of filenames: the "." - a fullstop -
  looked like it was part of the filename, making things difficult
  to sort out.

still to be resolved: the global_myname isn't set up, such that the
machine account password file is named "TEST3..mac".
source/passdb/smbpass.c
source/smbd/password.c