Commit 56472e35 authored by Niels Möller's avatar Niels Möller
Browse files

(com_umask): Use unsigned char.

(handle_command): Unsigned char argument.

Rev: src/sftp/commands.c:1.4
parent 3c13dadd
...@@ -257,7 +257,7 @@ com_mail(const char *arg UNUSED, const char *command) ...@@ -257,7 +257,7 @@ com_mail(const char *arg UNUSED, const char *command)
int int
com_umask(const char *arg, const char *command UNUSED) com_umask(const char *arg, const char *command UNUSED)
{ {
char tmp[PATH_MAX]; unsigned char tmp[PATH_MAX];
int given = 0; int given = 0;
while( arg && while( arg &&
...@@ -1883,6 +1883,7 @@ com_lls(const char *arg, const char *command UNUSED) ...@@ -1883,6 +1883,7 @@ com_lls(const char *arg, const char *command UNUSED)
modestring[6] = 'T'; modestring[6] = 'T';
} }
/* FIXME: Doesn't handle off_t larger than long */ /* FIXME: Doesn't handle off_t larger than long */
/* FIXME: st_nlink is a long on Solaris */
printf( printf(
"%s %4d %-8s %-8s %8ld ", "%s %4d %-8s %-8s %8ld ",
modestring, modestring,
...@@ -1929,7 +1930,7 @@ com_lmv(const char *arg UNUSED, const char *command UNUSED) ...@@ -1929,7 +1930,7 @@ com_lmv(const char *arg UNUSED, const char *command UNUSED)
int int
handle_command(const char *s) handle_command(const unsigned char *s)
{ {
const char *entered_cmd = s; const char *entered_cmd = s;
char tmp[WORDLENMAX]; char tmp[WORDLENMAX];
......
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