Skip to content

Commit

Permalink
mount: Revert [] > ()
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Jan 18, 2025
1 parent e1a2ed1 commit f994df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then
fi

# Mount permissions,options must start with one of "ro, rw, rq, sw, xx"
if ! echo "${_perms}" | grep -Eq '[ro|rw|rq|sw|xx](,.*)?$'; then
if ! echo "${_perms}" | grep -Eq '(ro|rw|rq|sw|xx)(,.*)?$'; then
error_notify "Detected invalid mount permissions in FSTAB."
warn "Format: /host/path /jail/path nullfs ro 0 0"
warn "Read: ${_fstab}"
Expand Down

0 comments on commit f994df3

Please sign in to comment.