diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-09-20 12:50:03 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-09-20 12:50:03 +0000 |
commit | 9ac1635ffe3dfde3e51794a0e0460376d705afed (patch) | |
tree | 1ffccace33f42380d176a58868345bc953c6b645 /app-misc/jail/files | |
parent | stable on ppc gsla bug: 64037 (diff) | |
download | historical-9ac1635ffe3dfde3e51794a0e0460376d705afed.tar.gz historical-9ac1635ffe3dfde3e51794a0e0460376d705afed.tar.bz2 historical-9ac1635ffe3dfde3e51794a0e0460376d705afed.zip |
multiuser.patch added as per bug #64718
Diffstat (limited to 'app-misc/jail/files')
-rw-r--r-- | app-misc/jail/files/digest-jail-1.9-r2 | 1 | ||||
-rw-r--r-- | app-misc/jail/files/multiuser-rsa.patch | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/jail/files/digest-jail-1.9-r2 b/app-misc/jail/files/digest-jail-1.9-r2 new file mode 100644 index 000000000000..46db79f06e61 --- /dev/null +++ b/app-misc/jail/files/digest-jail-1.9-r2 @@ -0,0 +1 @@ +MD5 d9c4ae58e658e8b13809399c69726154 jail_1.9.tar.gz 32994 diff --git a/app-misc/jail/files/multiuser-rsa.patch b/app-misc/jail/files/multiuser-rsa.patch new file mode 100644 index 000000000000..e7c94e274ba3 --- /dev/null +++ b/app-misc/jail/files/multiuser-rsa.patch @@ -0,0 +1,44 @@ +--- jail.c 2004-09-19 23:48:14.000000000 -0500 ++++ jail.c 2004-09-20 00:07:48.000000000 -0500 +@@ -115,6 +115,20 @@ + #include "helpers.h" + #include "types.h" + ++ ++ ++void make_jail_dir( char* dir ) ++{ ++ for( ; *dir != '\0'; ++dir ) ++ { ++ if( *dir == '.' ) ++ { ++ *dir = '\0'; ++ break; ++ } ++ } ++} ++ + ////////////////////////////////////////////////////////////////////////////// + // + // main() +@@ -211,6 +225,7 @@ + fprintf(stderr,"jail: can't get passwd info for uid %d\n",uid); + exit(-1); + } ++ make_jail_dir(pwdent->dir); + + // + // create the terminal devices here +@@ -289,7 +304,6 @@ + free(pwdent->dir); + pwdent->dir = tmp_str; + +- + #if DEBUG != 0 + fprintf(stderr,"jail: doing chdir(%s)\n",pwdent->dir); + #endif +@@ -494,4 +508,3 @@ + return(-4); + } + +- |