rpms/autofs/devel autofs-5.0.1-rc2-replace-tempnam.patch, 1.1, 1.2 autofs.spec, 1.168, 1.169

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Dec 12 03:35:10 UTC 2006


Author: ikent

Update of /cvs/dist/rpms/autofs/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv13273

Modified Files:
	autofs-5.0.1-rc2-replace-tempnam.patch autofs.spec 
Log Message:
* Mon Dec 11 2006 Ian Kent <ikent at redhat.com> - 5.0.1-0.rc2.35
- update "replace-tempnam" patch to create temp files in sane location.


autofs-5.0.1-rc2-replace-tempnam.patch:
 lib/mounts.c         |   33 +++++++++++++++++----------------
 modules/mount_bind.c |   41 +++++++++++++++++------------------------
 2 files changed, 34 insertions(+), 40 deletions(-)

Index: autofs-5.0.1-rc2-replace-tempnam.patch
===================================================================
RCS file: /cvs/dist/rpms/autofs/devel/autofs-5.0.1-rc2-replace-tempnam.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- autofs-5.0.1-rc2-replace-tempnam.patch	11 Dec 2006 07:47:21 -0000	1.1
+++ autofs-5.0.1-rc2-replace-tempnam.patch	12 Dec 2006 03:35:07 -0000	1.2
@@ -7,7 +7,7 @@
  unsigned int query_kproto_ver(void)
  {
 -	char options[MAX_OPTIONS_LEN + 1], *tmp;
-+	char dir[] = "autoXXXXXX", *t_dir;
++	char dir[] = "/tmp/autoXXXXXX", *t_dir;
 +	char options[MAX_OPTIONS_LEN + 1];
  	pid_t pgrp = getpgrp();
  	int pipefd[2], ioctlfd, len;
@@ -97,8 +97,8 @@
  {
 -	char *tmp1 = tempnam(NULL, "auto");
 -	char *tmp2 = tempnam(NULL, "auto");
-+	char tmp1[] = "autoXXXXXX", *t1_dir;
-+	char tmp2[] = "autoXXXXXX", *t2_dir;
++	char tmp1[] = "/tmp/autoXXXXXX", *t1_dir;
++	char tmp2[] = "/tmp/autoXXXXXX", *t2_dir;
  	int err;
  	struct stat st1, st2;
  


Index: autofs.spec
===================================================================
RCS file: /cvs/dist/rpms/autofs/devel/autofs.spec,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -r1.168 -r1.169
--- autofs.spec	11 Dec 2006 07:47:21 -0000	1.168
+++ autofs.spec	12 Dec 2006 03:35:07 -0000	1.169
@@ -4,7 +4,7 @@
 Summary: A tool for automatically mounting and unmounting filesystems.
 Name: autofs
 %define version 5.0.1
-%define release 0.rc2.34
+%define release 0.rc2.35
 Version: %{version}
 Release: %{release}
 Epoch: 1
@@ -200,6 +200,9 @@
 %{_libdir}/autofs/*
 
 %changelog
+* Mon Dec 11 2006 Ian Kent <ikent at redhat.com> - 5.0.1-0.rc2.35
+- update "replace-tempnam" patch to create temp files in sane location.
+
 * Mon Dec 11 2006 Ian Kent <ikent at redhat.com> - 5.0.1-0.rc2.34
 - change mount "device" from "automount" to the map name.
 - check for buffer overflow in mount_afs.c.




More information about the fedora-cvs-commits mailing list