#include "git_acl.h"
#include "stringutils.h"
-#define CFG_FILE "/etc/repo_shell.cfg"
+#define CFG_FILE "/etc/repo_shell.conf"
#define SHELL "/bin/bash"
typedef struct {
struct passwd *pw = getpwnam(user);
if (!pw)
- die("invalid user %s", pw->pw_name);
+ die("invalid user %s", user);
setuid(pw->pw_uid);
}