#include <bsd_auth.h>
#endif
+#include "config.h"
+
typedef struct {
int screen;
Window root, win;
else
die("slock: cannot retrieve password entry (make sure to suid or sgid slock)\n");
}
- endpwent();
rval = pw->pw_passwd;
#if HAVE_SHADOW_H
sp = getspnam(getenv("USER"));
if(!sp)
die("slock: cannot retrieve shadow entry (make sure to suid or sgid slock)\n");
- endspent();
rval = sp->sp_pwdp;
}
#endif
int screen;
if((argc == 2) && !strcmp("-v", argv[1]))
- die("slock-%s, © 2006-2012 Anselm R Garbe\n", VERSION);
+ die("slock-%s, © 2006-2014 slock engineers\n", VERSION);
else if(argc != 1)
usage();