Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37789463
en ru br
Репозитории ALT
S:0.1.4.4-alt2
5.1: 0.1.3-alt7
4.1: 0.1.3-alt5
4.0: 0.1.3-alt5
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: pam_encfs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pam_encfs.patch
Скачать


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)
 {
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin