Group :: System/Base
RPM: pam_encfs
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: pam_encfs.patch
Download
Download
diff --git a/pam_encfs/pam_encfs.c b/pam_encfs/pam_encfs.c
index 6686467..980c6e0 100755
--- a/pam_encfs/pam_encfs.c
+++ b/pam_encfs/pam_encfs.c
@@ -93,7 +93,7 @@ static int drop_permissions = 0;
/* --------------------------- PAM functions -------------------------------- */
/* this function ripped from pam_unix/support.c */
-int converse(pam_handle_t * pamh,
+static int converse(pam_handle_t * pamh,
int nargs,
struct pam_message **message, struct pam_response **response)
{
@@ -115,7 +115,7 @@ int converse(pam_handle_t * pamh,
/* this function ripped from pam_unix/support.c */
-int _set_auth_tok(pam_handle_t * pamh, int flags, int argc, const char **argv)
+static int _set_auth_tok(pam_handle_t * pamh, int flags, int argc, const char **argv)
{
int retval;
char *p;
@@ -159,7 +159,7 @@ int _set_auth_tok(pam_handle_t * pamh, int flags, int argc, const char **argv)
return PAM_SUCCESS;
}
-int waitpid_timeout(pid_t pid, int *status, int options)
+static int waitpid_timeout(pid_t pid, int *status, int options)
{
pid_t retval;
int i = 0;
@@ -176,7 +176,7 @@ int waitpid_timeout(pid_t pid, int *status, int options)
return 0;
}
-int is_dir(const char *path)
+static int is_dir(const char *path)
{
struct stat statbuf;
if ((stat(path,&statbuf) == 0) && (S_ISDIR(statbuf.st_mode) == 1)) {
@@ -185,7 +185,7 @@ int is_dir(const char *path)
return 0;
}
-int checkmnt(const char *targetpath)
+static int checkmnt(const char *targetpath)
{
FILE *f = setmntent("/etc/mtab", "r");
struct mntent *m;
@@ -220,7 +220,7 @@ void searchAndReplace(char *line)
while (str != NULL);
}
-int buildCmd(char *arg[], int pos, char *line)
+static int buildCmd(char *arg[], int pos, char *line)
{
int orig_pos = pos;
@@ -255,7 +255,7 @@ const char *getHome(struct passwd *pwd, pam_handle_t * pamh)
return tmp;
}
-int readconfig(struct passwd *pwd, pam_handle_t * pamh, const char *user,
+static int readconfig(struct passwd *pwd, pam_handle_t * pamh, const char *user,
char *path, char *targetpath, char *encfs_options,
char *fuse_options)
{