* arlex.l: Accept `\' in filenames. Patch by <earl_chew@agilent.com>.
* arsup.c (ar_open): Prepend tmp- to basename, not whole path.
This commit is contained in:
parent
54589086a8
commit
5e9520c877
@ -1,3 +1,9 @@
|
|||||||
|
2001-11-05 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* arlex.l: Accept `\' in filenames. Patch by <earl_chew@agilent.com>.
|
||||||
|
|
||||||
|
* arsup.c (ar_open): Prepend tmp- to basename, not whole path.
|
||||||
|
|
||||||
2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
* MAINTAINERS: Add self as s390/s390x maintainer.
|
* MAINTAINERS: Add self as s390/s390x maintainer.
|
||||||
|
@ -71,7 +71,7 @@ int linenumber;
|
|||||||
"(" { return '('; }
|
"(" { return '('; }
|
||||||
")" { return ')'; }
|
")" { return ')'; }
|
||||||
"," { return ','; }
|
"," { return ','; }
|
||||||
[A-Za-z0-9/$:.\-\_]+ {
|
[A-Za-z0-9/\\$:.\-\_]+ {
|
||||||
yylval.name = xstrdup (yytext);
|
yylval.name = xstrdup (yytext);
|
||||||
return FILENAME;
|
return FILENAME;
|
||||||
}
|
}
|
||||||
|
@ -160,10 +160,11 @@ DEFUN(ar_open,(name, t),
|
|||||||
|
|
||||||
{
|
{
|
||||||
char *tname = (char *) xmalloc (strlen (name) + 10);
|
char *tname = (char *) xmalloc (strlen (name) + 10);
|
||||||
|
const char *bname = lbasename (name);
|
||||||
real_name = name;
|
real_name = name;
|
||||||
/* Prepend tmp- to the beginning, to avoid file-name clashes after
|
/* Prepend tmp- to the beginning, to avoid file-name clashes after
|
||||||
truncation on filesystems with limited namespaces (DOS). */
|
truncation on filesystems with limited namespaces (DOS). */
|
||||||
sprintf(tname, "tmp-%s", name);
|
sprintf(tname, "%.*stmp-%s", (int) (bname - name), name, bname);
|
||||||
obfd = bfd_openw(tname, NULL);
|
obfd = bfd_openw(tname, NULL);
|
||||||
|
|
||||||
if (!obfd) {
|
if (!obfd) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user