[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/iscsi-initiator-utils/devel iscsi-initiator-utils.spec, 1.12, 1.13 iscsistart-static.patch, 1.1, 1.2



Author: mchristi

Update of /cvs/dist/rpms/iscsi-initiator-utils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv30432

Modified Files:
	iscsi-initiator-utils.spec iscsistart-static.patch 
Log Message:
add static getpwuid workaround for iscsistart


Index: iscsi-initiator-utils.spec
===================================================================
RCS file: /cvs/dist/rpms/iscsi-initiator-utils/devel/iscsi-initiator-utils.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- iscsi-initiator-utils.spec	21 Jun 2006 03:56:34 -0000	1.12
+++ iscsi-initiator-utils.spec	21 Jun 2006 17:43:58 -0000	1.13
@@ -1,7 +1,7 @@
 Summary: iSCSI daemon and utility programs
 Name: iscsi-initiator-utils
 Version: 6.0.5.595
-Release: 1
+Release: 2
 Source0: http://people.redhat.com/mchristi/iscsi/FC6/open-iscsi/rpm/open-iscsi-%{version}.tar.bz2
 Source1: iscsi.init
 Patch0: open-iscsi-5.0.5.595-update-initscripts-and-docs.patch
@@ -76,6 +76,9 @@
 %{_mandir}/*/*
 
 %changelog
+* Wed Jun 21 2006 Mike Christie <mchristi redhat com> - 6.0.5.595-2
+- add PatM's statics.c file. This is needed for boot since 
+  there is no getpwuid static available at that time.
 * Tue Jun 20 2006 Jeremy Katz <katzj redhat com> - 6.0.5.595-1
 - ensure that we respect %%{optflags}
 - cleaned up initscript to make use of standard functions, return right 

iscsistart-static.patch:
 Makefile  |    5 +++--
 statics.c |   20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 2 deletions(-)

Index: iscsistart-static.patch
===================================================================
RCS file: /cvs/dist/rpms/iscsi-initiator-utils/devel/iscsistart-static.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- iscsistart-static.patch	21 Jun 2006 03:56:34 -0000	1.1
+++ iscsistart-static.patch	21 Jun 2006 17:43:58 -0000	1.2
@@ -1,11 +1,39 @@
---- open-iscsi-6.0.5.595/usr/Makefile.static	2006-06-20 23:21:15.000000000 -0400
-+++ open-iscsi-6.0.5.595/usr/Makefile	2006-06-20 23:22:59.000000000 -0400
-@@ -51,7 +51,7 @@
+diff -Naurp open-iscsi-6.0.5.595/usr/Makefile open-iscsi-6.0.5.610.work/usr/Makefile
+--- open-iscsi-6.0.5.595/usr/Makefile	2006-06-21 12:32:51.000000000 -0500
++++ open-iscsi-6.0.5.610.work/usr/Makefile	2006-06-21 12:33:55.000000000 -0500
+@@ -50,8 +50,9 @@ iscsid: $(COMMON_SRCS) $(IPC_OBJ) $(INIT
+ iscsiadm: $(COMMON_SRCS) strings.o discovery.o iscsiadm.o
  	$(CC) $(CFLAGS) $^ $(DBM_LIB) -o $@
  
- iscsistart: $(IPC_OBJ) $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) iscsistart.o
+-iscsistart: $(IPC_OBJ) $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) iscsistart.o
 -	$(CC) $(CFLAGS) $^ -o $@
++iscsistart: $(IPC_OBJ) $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) iscsistart.o \
++		statics.o
 +	$(CC) -static $(CFLAGS) $^ -o $@
  
  clean:
  	rm -f *.o $(PROGRAMS)
+diff -Naurp open-iscsi-6.0.5.595/usr/statics.c open-iscsi-6.0.5.610.work/usr/statics.c
+--- open-iscsi-6.0.5.595/usr/statics.c	1969-12-31 18:00:00.000000000 -0600
++++ open-iscsi-6.0.5.610.work/usr/statics.c	2006-06-21 12:30:05.000000000 -0500
+@@ -0,0 +1,20 @@
++#include <unistd.h>
++#include <pwd.h>
++#include <sys/errno.h>
++#include <sys/types.h>
++
++static struct passwd root_pw = {
++	.pw_name = "root",
++};
++
++struct passwd*
++getpwuid(uid_t uid)
++{
++	if (uid == 0)
++		return &root_pw;
++	else {
++		errno = ENOENT;
++		return 0;
++	}
++}
++


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]