xref: /illumos-gate/usr/src/test/os-tests/tests/execvpe/execvpe-noperm (revision a89c0811c892ec231725fe10817ef95dda813c06)
1*a89c0811SRobert Mustacchi#
2*a89c0811SRobert Mustacchi# This file and its contents are supplied under the terms of the
3*a89c0811SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*a89c0811SRobert Mustacchi# You may only use this file in accordance with the terms of version
5*a89c0811SRobert Mustacchi# 1.0 of the CDDL.
6*a89c0811SRobert Mustacchi#
7*a89c0811SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*a89c0811SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*a89c0811SRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*a89c0811SRobert Mustacchi#
11*a89c0811SRobert Mustacchi
12*a89c0811SRobert Mustacchi#
13*a89c0811SRobert Mustacchi# Copyright 2024 Oxide Computer Company
14*a89c0811SRobert Mustacchi#
15*a89c0811SRobert Mustacchi
16*a89c0811SRobert Mustacchi#
17*a89c0811SRobert Mustacchi# This file does not have a #! and that must be kept that way. The point of this
18*a89c0811SRobert Mustacchi# is for testing execvpe() properly failing to use this file because it lacks
19*a89c0811SRobert Mustacchi# executable permissions and therefore should fail with EACCES and not fall back
20*a89c0811SRobert Mustacchi# to the shell execution, which is why we have the exit 0.
21*a89c0811SRobert Mustacchi#
22*a89c0811SRobert Mustacchi
23*a89c0811SRobert Mustacchiexit 0
24