diff options
-rw-r--r-- | sftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.185 2018/04/26 14:47:03 bluhm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.186 2018/09/07 04:26:56 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -1443,6 +1443,7 @@ parse_args(const char **cpp, int *ignore_errors, int *aflag, | |||
1443 | case I_LUMASK: | 1443 | case I_LUMASK: |
1444 | case I_CHMOD: | 1444 | case I_CHMOD: |
1445 | base = 8; | 1445 | base = 8; |
1446 | /* FALLTHROUGH */ | ||
1446 | case I_CHOWN: | 1447 | case I_CHOWN: |
1447 | case I_CHGRP: | 1448 | case I_CHGRP: |
1448 | if ((optidx = parse_no_flags(cmd, argv, argc)) == -1) | 1449 | if ((optidx = parse_no_flags(cmd, argv, argc)) == -1) |
@@ -1541,6 +1542,7 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, | |||
1541 | break; | 1542 | break; |
1542 | case I_SYMLINK: | 1543 | case I_SYMLINK: |
1543 | sflag = 1; | 1544 | sflag = 1; |
1545 | /* FALLTHROUGH */ | ||
1544 | case I_LINK: | 1546 | case I_LINK: |
1545 | if (!sflag) | 1547 | if (!sflag) |
1546 | path1 = make_absolute(path1, *pwd); | 1548 | path1 = make_absolute(path1, *pwd); |