summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/sftp-int.c')
-rw-r--r--usr.bin/ssh/sftp-int.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index ab037ab8489..749b0661d81 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -25,7 +25,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.64 2003/11/08 19:17:29 jmc Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.65 2003/11/21 11:57:03 djm Exp $");
#include <glob.h>
@@ -362,7 +362,7 @@ get_pathname(const char **cpp, char **path)
}
if (cp[i] == '\\') { /* Escaped characters */
i++;
- if (cp[i] != '\'' && cp[i] != '\"' &&
+ if (cp[i] != '\'' && cp[i] != '\"' &&
cp[i] != '\\') {
error("Bad escaped character '\%c'",
cp[i]);
@@ -390,8 +390,8 @@ get_pathname(const char **cpp, char **path)
return (0);
fail:
- xfree(*path);
- *path = NULL;
+ xfree(*path);
+ *path = NULL;
return (-1);
}
@@ -531,7 +531,7 @@ process_put(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag)
for (i = 0; g.gl_pathv[i]; i++) {
if (!is_reg(g.gl_pathv[i])) {
- error("skipping non-regular file %s",
+ error("skipping non-regular file %s",
g.gl_pathv[i]);
continue;
}
@@ -599,7 +599,7 @@ do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag)
for (n = 0; d[n] != NULL; n++)
m = MAX(m, strlen(d[n]->filename));
- if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
+ if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
width = ws.ws_col;
columns = width / (m + 2);
@@ -669,7 +669,7 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
strncmp(path, g.gl_pathv[0], strlen(g.gl_pathv[0]) - 1) == 0) {
if ((a = do_lstat(conn, path, 1)) == NULL) {
globfree(&g);
- return (-1);
+ return (-1);
}
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
S_ISDIR(a->perm)) {
@@ -680,10 +680,10 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
if (!(lflag & SHORT_VIEW)) {
int m = 0, width = 80;
- struct winsize ws;
+ struct winsize ws;
/* Count entries for sort and find longest filename */
- for (i = 0; g.gl_pathv[i]; i++)
+ for (i = 0; g.gl_pathv[i]; i++)
m = MAX(m, strlen(g.gl_pathv[i]));
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
@@ -760,7 +760,7 @@ parse_args(const char **cpp, int *pflag, int *lflag, int *iflag,
*iflag = 1;
cp++;
}
-
+
/* Figure out which command we have */
for (i = 0; cmds[i].c; i++) {
int cmdlen = strlen(cmds[i].c);