summaryrefslogtreecommitdiffstats
path: root/japanese/samba
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2004-01-30 10:39:58 +0000
committersumikawa <sumikawa@FreeBSD.org>2004-01-30 10:39:58 +0000
commit1db45a64946ac901aeb28dfbfe3cb513e6a14b0a (patch)
treec44970b9d185adcee727dcf491ebc2b2a4fbafe7 /japanese/samba
parentaaa9253ca103c57344e545724f2d52e334791046 (diff)
downloadFreeBSD-ports-1db45a64946ac901aeb28dfbfe3cb513e6a14b0a.zip
FreeBSD-ports-1db45a64946ac901aeb28dfbfe3cb513e6a14b0a.tar.gz
Fixed the bug password cannot be changed from a client.
PR: ports/61662 Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
Diffstat (limited to 'japanese/samba')
-rw-r--r--japanese/samba/Makefile2
-rw-r--r--japanese/samba/files/patch-lib:util_sec.c26
2 files changed, 27 insertions, 1 deletions
diff --git a/japanese/samba/Makefile b/japanese/samba/Makefile
index a6b361e..348c050 100644
--- a/japanese/samba/Makefile
+++ b/japanese/samba/Makefile
@@ -7,7 +7,7 @@
PORTNAME= samba
PORTVERSION= ${SAMBA_VERSION}.j${SAMBA_JA_VERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= japanese net
MASTER_SITES= ftp://ftp.samba.gr.jp/pub/samba-jp/%SUBDIR%/ \
ftp://ftp.iij.ad.jp/pub/SAMBA/samba-jp/%SUBDIR%/ \
diff --git a/japanese/samba/files/patch-lib:util_sec.c b/japanese/samba/files/patch-lib:util_sec.c
new file mode 100644
index 0000000..639c79e
--- /dev/null
+++ b/japanese/samba/files/patch-lib:util_sec.c
@@ -0,0 +1,26 @@
+Index: lib/util_sec.c
+===================================================================
+RCS file: /project/cvs/samba22-ja/source/lib/util_sec.c,v
+retrieving revision 1.4
+diff -u -r1.4 util_sec.c
+--- lib/util_sec.c 21 Nov 2002 12:53:49 -0000 1.4
++++ lib/util_sec.c 21 Jan 2004 01:31:37 -0000
+@@ -283,6 +283,10 @@
+
+ void restore_re_gid(void)
+ {
++ uid_t uid = geteuid();
++
++ set_effective_uid(0);
++
+ #if USE_SETRESUID
+ setresgid(saved_rgid, saved_egid, -1);
+ #elif USE_SETREUID
+@@ -298,6 +302,7 @@
+ set_effective_gid(saved_egid);
+ #endif
+
++ set_effective_uid(uid);
+ assert_gid(saved_rgid, saved_egid);
+ }
+
OpenPOWER on IntegriCloud