version 1.108, 2014/12/21 22:27:56 |
version 1.109, 2015/01/20 23:14:00 |
|
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/param.h> |
|
|
|
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <limits.h> |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "match.h" |
#include "match.h" |
|
|
char * |
char * |
expand_authorized_keys(const char *filename, struct passwd *pw) |
expand_authorized_keys(const char *filename, struct passwd *pw) |
{ |
{ |
char *file, ret[MAXPATHLEN]; |
char *file, ret[PATH_MAX]; |
int i; |
int i; |
|
|
file = percent_expand(filename, "h", pw->pw_dir, |
file = percent_expand(filename, "h", pw->pw_dir, |
|
|
auth_secure_path(const char *name, struct stat *stp, const char *pw_dir, |
auth_secure_path(const char *name, struct stat *stp, const char *pw_dir, |
uid_t uid, char *err, size_t errlen) |
uid_t uid, char *err, size_t errlen) |
{ |
{ |
char buf[MAXPATHLEN], homedir[MAXPATHLEN]; |
char buf[PATH_MAX], homedir[PATH_MAX]; |
char *cp; |
char *cp; |
int comparehome = 0; |
int comparehome = 0; |
struct stat st; |
struct stat st; |