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

(com_umask): Use unsigned char.

(com_chown): Likewise.
(com_chgrp): Likewise.
(handle_command): Unsigned char argument.

Rev: src/sftp/ChangeLog:1.12
Rev: src/sftp/commands.c:1.5
Rev: src/sftp/commands.h:1.3
parent 89b82f18
2002-03-18 Niels Mller <nisse@lysator.liu.se> 2002-03-18 Niels Mller <nisse@lysator.liu.se>
* commands.c (com_umask): Use unsigned char. * commands.c (com_umask): Use unsigned char.
(com_chown): Likewise.
(com_chgrp): Likewise.
(handle_command): Unsigned char argument. (handle_command): Unsigned char argument.
2002-03-14 Pontus <pont@it.uu.se> 2002-03-14 Pontus <pont@it.uu.se>
......
...@@ -1312,7 +1312,7 @@ int com_put(const char *arg, const char *command) ...@@ -1312,7 +1312,7 @@ int com_put(const char *arg, const char *command)
int com_chown(const char *arg, const char *command) int com_chown(const char *arg, const char *command)
{ {
char tmp[PATH_MAX]; unsigned char tmp[PATH_MAX];
int gotuid = 0; int gotuid = 0;
int enough_parameters = 0; int enough_parameters = 0;
long newuid = 0; long newuid = 0;
...@@ -1390,7 +1390,7 @@ int com_chown(const char *arg, const char *command) ...@@ -1390,7 +1390,7 @@ int com_chown(const char *arg, const char *command)
int com_chgrp(const char *arg, const char *command) int com_chgrp(const char *arg, const char *command)
{ {
char tmp[PATH_MAX]; unsigned char tmp[PATH_MAX];
int gotgid = 0; int gotgid = 0;
long newgid = 0; long newgid = 0;
int enough_parameters = 0; int enough_parameters = 0;
...@@ -1885,9 +1885,9 @@ com_lls(const char *arg, const char *command UNUSED) ...@@ -1885,9 +1885,9 @@ com_lls(const char *arg, const char *command UNUSED)
/* 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 */ /* FIXME: st_nlink is a long on Solaris */
printf( printf(
"%s %4d %-8s %-8s %8ld ", "%s %4ld %-8s %-8s %8ld ",
modestring, modestring,
st.st_nlink, (long) st.st_nlink,
uidstring( st.st_uid ), uidstring( st.st_uid ),
gidstring( st.st_gid ), gidstring( st.st_gid ),
(long) st.st_size (long) st.st_size
......
...@@ -54,7 +54,7 @@ extern int buggy_server_treshold; ...@@ -54,7 +54,7 @@ extern int buggy_server_treshold;
/* Public functions */ /* Public functions */
int handle_command(const char *s); int handle_command(const unsigned char *s);
/* Internal below */ /* Internal below */
......
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