Accepting request 44213 from Base:System

checked in (request 44213)

OBS-URL: https://build.opensuse.org/request/show/44213
OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=132
This commit is contained in:
OBS User autobuild
2010-08-01 15:23:02 +00:00
committed by Git OBS Bridge
parent 09ebfe6986
commit 55e2865caf
5 changed files with 9 additions and 74 deletions

View File

@@ -14,7 +14,6 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@@ -48,7 +47,7 @@ main (int argc, char *argv[])
/* check if file exist and is compressed */
{
unsigned char buf [2];
int fd = open (argv[1], O_RDONLY | O_CLOEXEC);
int fd = open (argv[1], O_RDONLY);
if (fd == -1)
{
fprintf (stderr, "Cannot open kernel image \"%s\"\n", argv[1]);
@@ -65,7 +64,7 @@ main (int argc, char *argv[])
if (buf [0] == 037 && (buf [1] == 0213 || buf [1] == 0236))
{
snprintf (command, sizeof (command), "/bin/gzip -dc %s 2>/dev/null", argv[1]);
fp = popen (command, "re");
fp = popen (command, "r");
if (fp == NULL)
{
fprintf (stderr, "%s: faild\n", command);
@@ -74,7 +73,7 @@ main (int argc, char *argv[])
}
else
{
fp = fopen (argv[1],"re");
fp = fopen (argv[1],"r");
}
close (fd);
}