Commit 806b1c19 authored by Niels Möller's avatar Niels Möller

(com_chown): Always us uncigned char with isdigit.

(com_chgrp): Likewise.

Rev: src/sftp/ChangeLog:1.59
Rev: src/sftp/commands.c:1.17
parent 79af833d
2004-11-17 Niels Mller <nisse@lysator.liu.se>
* commands.c (com_chown): Always us uncigned char with isdigit.
(com_chgrp): Likewise.
* Makefile.am (LDADD): All programs need linking with $(LIBOBJS),
not just lsftp.
......
......@@ -1441,7 +1441,7 @@ int com_chown(const char *arg, const char *command)
{
if( !gotuid )
{
if( isdigit( tmp[0] ) ) /* Numeric GID? FIXME: Better check? */
if( isdigit( (unsigned char) tmp[0] ) ) /* Numeric GID? FIXME: Better check? */
newuid = atol( tmp );
else
{
......@@ -1523,7 +1523,7 @@ int com_chgrp(const char *arg, const char *command)
{
if( !gotgid ) /* First time? */
{
if( isdigit( tmp[0] ) ) /* Numeric GID? FIXME: Better check? */
if( isdigit( (unsigned char) tmp[0] ) ) /* Numeric GID? FIXME: Better check? */
newgid = atol( tmp );
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment