Update.
* stdlib/xpg_basename.c (__xpg_basename): Don't return pointer to slash before the basename [PR libc/1383]. * argp/argp.h: Fix typo in last patch.
This commit is contained in:
parent
be9cd93a78
commit
64ad0de291
@ -1,5 +1,10 @@
|
|||||||
1999-10-10 Ulrich Drepper <drepper@cygnus.com>
|
1999-10-10 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* stdlib/xpg_basename.c (__xpg_basename): Don't return pointer to
|
||||||
|
slash before the basename [PR libc/1383].
|
||||||
|
|
||||||
|
* argp/argp.h: Fix typo in last patch.
|
||||||
|
|
||||||
* sysdeps/powerpc/sysdep.h: New file.
|
* sysdeps/powerpc/sysdep.h: New file.
|
||||||
* sysdeps/unix/powerpc/sysdep.h: New file.
|
* sysdeps/unix/powerpc/sysdep.h: New file.
|
||||||
* sysdeps/unix/sysv/linux/powerpc/sysdep.h: Include
|
* sysdeps/unix/sysv/linux/powerpc/sysdep.h: Include
|
||||||
|
@ -445,7 +445,7 @@ extern error_t argp_err_exit_status;
|
|||||||
extern void argp_help (__const struct argp *__restrict __argp,
|
extern void argp_help (__const struct argp *__restrict __argp,
|
||||||
FILE *__restrict __stream,
|
FILE *__restrict __stream,
|
||||||
unsigned __flags, char *__restrict __name) __THROW;
|
unsigned __flags, char *__restrict __name) __THROW;
|
||||||
extern void __argp_help __P (__const struct argp *__restrict __argp,
|
extern void __argp_help (__const struct argp *__restrict __argp,
|
||||||
FILE *__restrict __stream, unsigned __flags,
|
FILE *__restrict __stream, unsigned __flags,
|
||||||
char *__name) __THROW;
|
char *__name) __THROW;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Return basename of given pathname according to the weird XPG specification.
|
/* Return basename of given pathname according to the weird XPG specification.
|
||||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||||
|
|
||||||
@ -62,6 +62,9 @@ __xpg_basename (char *filename)
|
|||||||
while (p[1] != '\0')
|
while (p[1] != '\0')
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
/* Go to the first character of the name. */
|
||||||
|
++p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user