* ftpfs.c (setup_passive): Cast arguments to isdigit() to
unsigned char for compatibility with non-GNU libc. * tar.c (from_oct): Likewise with isspace(). Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
Этот коммит содержится в:
родитель
0c0a5ae270
Коммит
e385a9c9ab
@ -1,3 +1,10 @@
|
|||||||
|
2002-07-03 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* ftpfs.c (setup_passive): Cast arguments to isdigit() to
|
||||||
|
unsigned char for compatibility with non-GNU libc.
|
||||||
|
* tar.c (from_oct): Likewise with isspace().
|
||||||
|
Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
|
||||||
|
|
||||||
2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
|
2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
* extfs.c (extfs_fill_names): Generate filename#vfsname/dir
|
* extfs.c (extfs_fill_names): Generate filename#vfsname/dir
|
||||||
|
@ -911,11 +911,11 @@ setup_passive (vfs *me, vfs_s_super *super, int my_socket, struct sockaddr_in *s
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Parse remote parameters */
|
/* Parse remote parameters */
|
||||||
for (c = reply_str + 4; (*c) && (!isdigit (*c)); c++)
|
for (c = reply_str + 4; (*c) && (!isdigit ((unsigned char) *c)); c++)
|
||||||
;
|
;
|
||||||
if (!*c)
|
if (!*c)
|
||||||
return 0;
|
return 0;
|
||||||
if (!isdigit (*c))
|
if (!isdigit ((unsigned char) *c))
|
||||||
return 0;
|
return 0;
|
||||||
if (sscanf (c, "%d,%d,%d,%d,%d,%d", &xa, &xb, &xc, &xd, &xe, &xf) != 6)
|
if (sscanf (c, "%d,%d,%d,%d,%d,%d", &xa, &xb, &xc, &xd, &xe, &xf) != 6)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -40,7 +40,7 @@ static long from_oct (int digs, char *where)
|
|||||||
{
|
{
|
||||||
register long value;
|
register long value;
|
||||||
|
|
||||||
while (isspace (*where)) { /* Skip spaces */
|
while (isspace ((unsigned char) *where)) { /* Skip spaces */
|
||||||
where++;
|
where++;
|
||||||
if (--digs <= 0)
|
if (--digs <= 0)
|
||||||
return -1; /* All blank field */
|
return -1; /* All blank field */
|
||||||
@ -51,7 +51,7 @@ static long from_oct (int digs, char *where)
|
|||||||
--digs;
|
--digs;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (digs > 0 && *where && !isspace (*where))
|
if (digs > 0 && *where && !isspace ((unsigned char) *where))
|
||||||
return -1; /* Ended on non-space/nul */
|
return -1; /* Ended on non-space/nul */
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user