upstream: Add FALLTHROUGH comments where appropriate. Patch from

jjelen at redhat via bz#2687.

OpenBSD-Commit-ID: c48eb457be697a19d6d2950c6d0879f3ccc851d3
This commit is contained in:
dtucker@openbsd.org 2018-09-07 04:26:56 +00:00 committed by Damien Miller
parent 247766cd31
commit de37ca9094

4
sftp.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: sftp.c,v 1.185 2018/04/26 14:47:03 bluhm Exp $ */ /* $OpenBSD: sftp.c,v 1.186 2018/09/07 04:26:56 dtucker Exp $ */
/* /*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
* *
@ -1443,6 +1443,7 @@ parse_args(const char **cpp, int *ignore_errors, int *aflag,
case I_LUMASK: case I_LUMASK:
case I_CHMOD: case I_CHMOD:
base = 8; base = 8;
/* FALLTHROUGH */
case I_CHOWN: case I_CHOWN:
case I_CHGRP: case I_CHGRP:
if ((optidx = parse_no_flags(cmd, argv, argc)) == -1) 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,
break; break;
case I_SYMLINK: case I_SYMLINK:
sflag = 1; sflag = 1;
/* FALLTHROUGH */
case I_LINK: case I_LINK:
if (!sflag) if (!sflag)
path1 = make_absolute(path1, *pwd); path1 = make_absolute(path1, *pwd);