aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

passwd_fbsd.c (495B)


      1 /* see LICENSE file for copyright and license details */
      2 #include "../passwd.h"
      3 
      4 #include <errno.h>
      5 #include <stddef.h>
      6 
      7 /* getpwnam already returns the hash to root, master.passwd holds it and
      8  * pwd_mkdb rebuilds the databases from it */
      9 #if defined(__FreeBSD__) && !defined(ARUU_FORCE_POSIX)
     10 char *
     11 pw_shadow_hash(const char *name)
     12 {
     13   (void)name;
     14   errno = 0;
     15   return NULL;
     16 }
     17 
     18 int
     19 pw_shadow_update(const char *name, const char *newhash)
     20 {
     21   return pw_update_master(name, newhash);
     22 }
     23 #endif