Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b114d8ed
Commit
b114d8ed
authored
Dec 13, 2000
by
Tom Tromey
Committed by
Tom Tromey
Dec 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jartool.c (extract_jar): Use strchr, not index.
From-SVN: r38225
parent
a8e4a997
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
fastjar/ChangeLog
+4
-0
fastjar/jartool.c
+10
-5
No files found.
fastjar/ChangeLog
View file @
b114d8ed
2000-12-13 Tom Tromey <tromey@redhat.com>
* jartool.c (extract_jar): Use strchr, not index.
2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
* install-defs.sh: Removed.
* install-defs.sh: Removed.
...
...
fastjar/jartool.c
View file @
b114d8ed
/*
/*
jartool.c - main functions for fastjar utility
jartool.c - main functions for fastjar utility
Copyright (C) 1999 Bryan Burns
Copyright (C) 1999
, 2000
Bryan Burns
This program is free software; you can redistribute it and/or
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
modify it under the terms of the GNU General Public License
...
@@ -17,9 +17,14 @@
...
@@ -17,9 +17,14 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
*/
/* $Id: jartool.c,v 1.
5 2000/08/24 15:01:27 cory
Exp $
/* $Id: jartool.c,v 1.
1 2000/12/09 03:08:23 apbianco
Exp $
$Log: jartool.c,v $
$Log: jartool.c,v $
Revision 1.1 2000/12/09 03:08:23 apbianco
2000-12-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
* fastjar: Imported.
Revision 1.5 2000/08/24 15:01:27 cory
Revision 1.5 2000/08/24 15:01:27 cory
Made certain that fastjar opened the jar file before trying to update it
Made certain that fastjar opened the jar file before trying to update it
with the -u option.
with the -u option.
...
@@ -164,7 +169,7 @@
...
@@ -164,7 +169,7 @@
#endif
#endif
static
char
version_string
[]
=
VERSION
;
static
char
version_string
[]
=
VERSION
;
static
char
rcsid
[]
=
"$Id: jartool.c,v 1.
5 2000/08/24 15:01:27 cory
Exp $"
;
static
char
rcsid
[]
=
"$Id: jartool.c,v 1.
1 2000/12/09 03:08:23 apbianco
Exp $"
;
extern
int
errno
;
extern
int
errno
;
...
@@ -1266,7 +1271,7 @@ int extract_jar(int fd, char **files, int file_num){
...
@@ -1266,7 +1271,7 @@ int extract_jar(int fd, char **files, int file_num){
/* OK, there is some directory information in the file. Nothing to do
/* OK, there is some directory information in the file. Nothing to do
but ensure the directory(s) exist, and create them if they don't.
but ensure the directory(s) exist, and create them if they don't.
What a pain! */
What a pain! */
if
(
index
(
filename
,
'/'
)
!=
NULL
&&
handle
){
if
(
strchr
(
filename
,
'/'
)
!=
NULL
&&
handle
){
/* Loop through all the directories in the path, (everything w/ a '/') */
/* Loop through all the directories in the path, (everything w/ a '/') */
ub1
*
start
=
filename
;
ub1
*
start
=
filename
;
char
*
tmp_buff
;
char
*
tmp_buff
;
...
@@ -1275,7 +1280,7 @@ int extract_jar(int fd, char **files, int file_num){
...
@@ -1275,7 +1280,7 @@ int extract_jar(int fd, char **files, int file_num){
tmp_buff
=
malloc
(
sizeof
(
char
)
*
strlen
(
filename
));
tmp_buff
=
malloc
(
sizeof
(
char
)
*
strlen
(
filename
));
for
(;;){
for
(;;){
ub1
*
idx
=
index
(
start
,
'/'
);
ub1
*
idx
=
strchr
(
start
,
'/'
);
if
(
idx
==
NULL
)
if
(
idx
==
NULL
)
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment