summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshell/common/sh/xec.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-11 00:49:25 +0300
committerGordon Ross <gwr@nexenta.com>2018-02-26 20:42:03 -0500
commit5ae8bd5389562e74de30aac044ab33ec90e930a5 (patch)
treef43fdcf10c56fd4bc49ca33625a6c580587047f8 /usr/src/lib/libshell/common/sh/xec.c
parent2a898b17c54fe53254413d8d4cac0de440289b59 (diff)
downloadillumos-gate-5ae8bd5389562e74de30aac044ab33ec90e930a5.tar.gz
9165 libshell: this statement may fall through
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/lib/libshell/common/sh/xec.c')
-rw-r--r--usr/src/lib/libshell/common/sh/xec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/libshell/common/sh/xec.c b/usr/src/lib/libshell/common/sh/xec.c
index afceb6a355..3975060421 100644
--- a/usr/src/lib/libshell/common/sh/xec.c
+++ b/usr/src/lib/libshell/common/sh/xec.c
@@ -1160,6 +1160,7 @@ int sh_exec(register const Shnode_t *t, int flags)
break;
}
}
+ /* FALLTHROUGH */
case TFORK:
{
register pid_t parent;
@@ -1373,6 +1374,7 @@ int sh_exec(register const Shnode_t *t, int flags)
sh_done(shp,0);
}
}
+ /* FALLTHROUGH */
case TSETIO:
{
@@ -3223,6 +3225,7 @@ static pid_t sh_ntfork(Shell_t *shp,const Shnode_t *t,char *argv[],int *jobid,in
{
case ENOENT:
errormsg(SH_DICT,ERROR_system(ERROR_NOENT),e_found+4);
+ /* FALLTHROUGH */
default:
errormsg(SH_DICT,ERROR_system(ERROR_NOEXEC),e_exec+4);
}