Removed patches which are now upstream.
This commit is contained in:
parent
8e2bde37f2
commit
b131c8649a
@ -1,17 +0,0 @@
|
|||||||
diff --git a/daemon/find.c b/daemon/find.c
|
|
||||||
index a873bca..287aae3 100644
|
|
||||||
--- a/daemon/find.c
|
|
||||||
+++ b/daemon/find.c
|
|
||||||
@@ -113,7 +113,11 @@ do_find (char *dir)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- pclose (fp);
|
|
||||||
+ if (pclose (fp) == -1) {
|
|
||||||
+ reply_with_perror ("pclose: find");
|
|
||||||
+ free_stringslen (res, size);
|
|
||||||
+ return NULL;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (r == -1) {
|
|
||||||
free_stringslen (res, size);
|
|
@ -1,26 +0,0 @@
|
|||||||
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
|
|
||||||
index 2e83b9f..030aabe 100644
|
|
||||||
--- a/daemon/guestfsd.c
|
|
||||||
+++ b/daemon/guestfsd.c
|
|
||||||
@@ -453,7 +453,8 @@ commandrv (char **stdoutput, char **stderror, char * const* const argv)
|
|
||||||
{
|
|
||||||
int so_size = 0, se_size = 0;
|
|
||||||
int so_fd[2], se_fd[2];
|
|
||||||
- int pid, r, quit, i;
|
|
||||||
+ pid_t pid;
|
|
||||||
+ int r, quit, i;
|
|
||||||
fd_set rset, rset2;
|
|
||||||
char buf[256];
|
|
||||||
char *p;
|
|
||||||
@@ -589,7 +590,10 @@ commandrv (char **stdoutput, char **stderror, char * const* const argv)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the exit status of the command. */
|
|
||||||
- waitpid (pid, &r, 0);
|
|
||||||
+ if (waitpid (pid, &r, 0) != pid) {
|
|
||||||
+ perror ("waitpid");
|
|
||||||
+ return -1;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (WIFEXITED (r)) {
|
|
||||||
return WEXITSTATUS (r);
|
|
@ -11,11 +11,6 @@ URL: http://libguestfs.org/
|
|||||||
Source0: http://libguestfs.org/download/%{name}-%{version}.tar.gz
|
Source0: http://libguestfs.org/download/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
# Upstream: 3c5b447efd42b03c24104bdc1f3260e879bb1d25
|
|
||||||
Patch0: guestfs-daemon-find.patch
|
|
||||||
# Upstream: 6654f617a6f720baa8f1ced89179e11679353d1e
|
|
||||||
Patch1: guestfs-daemon-waitpid.patch
|
|
||||||
|
|
||||||
# Basic build requirements:
|
# Basic build requirements:
|
||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
BuildRequires: /usr/bin/pod2text
|
BuildRequires: /usr/bin/pod2text
|
||||||
@ -254,9 +249,6 @@ Requires: jpackage-utils
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
mkdir -p daemon/m4
|
mkdir -p daemon/m4
|
||||||
|
|
||||||
# Rerun the generator to make sure all files are up to date.
|
# Rerun the generator to make sure all files are up to date.
|
||||||
@ -503,6 +495,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Jun 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.50-1
|
* Mon Jun 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.50-1
|
||||||
- New upstream release 1.0.50.
|
- New upstream release 1.0.50.
|
||||||
|
- Removed patches which are now upstream.
|
||||||
|
|
||||||
* Sat Jun 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.49-5
|
* Sat Jun 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.49-5
|
||||||
- Remove workaround for RHBZ#507007, since bug is now fixed.
|
- Remove workaround for RHBZ#507007, since bug is now fixed.
|
||||||
|
Loading…
Reference in New Issue
Block a user