aruu

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

passwd_posix.c (721B)


      1 /* see LICENSE file for copyright and license details */
      2 #include "../passwd.h"
      3 
      4 #include <errno.h>
      5 #include <stddef.h>
      6 
      7 /* no shadow file: the hash is the one the passwd entry holds */
      8 #if !(                                                                                             \
      9     defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)      \
     10     || defined(__DragonFly__)                                                                      \
     11 ) || defined(ARUU_FORCE_POSIX)
     12 char *
     13 pw_shadow_hash(const char *name)
     14 {
     15   (void)name;
     16   errno = 0;
     17   return NULL;
     18 }
     19 
     20 int
     21 pw_shadow_update(const char *name, const char *newhash)
     22 {
     23   (void)name;
     24   (void)newhash;
     25   return 1;
     26 }
     27 #endif