[__file] Treat pre-exists as a special case in gencode-remote as it should never get there

This commit is contained in:
Dennis Camera 2020-02-26 16:48:14 +01:00
parent 46d2487f08
commit 9eacba06bb
1 changed files with 30 additions and 26 deletions

View File

@ -61,7 +61,7 @@ set_mode() {
} }
case "$state_should" in case "$state_should" in
present|exists|pre-exists) present|exists)
# Note: Mode - needs to happen last as a chown/chgrp can alter mode by # Note: Mode - needs to happen last as a chown/chgrp can alter mode by
# clearing S_ISUID and S_ISGID bits (see chown(2)) # clearing S_ISUID and S_ISGID bits (see chown(2))
for attribute in group owner mode; do for attribute in group owner mode; do
@ -83,7 +83,11 @@ case "$state_should" in
# set-attributes is created if file is created or uploaded in gencode-local # set-attributes is created if file is created or uploaded in gencode-local
fire_onchange=1 fire_onchange=1
fi fi
;;
pre-exists)
# pre-exists should never reach gencode-remote…
exit 1
;; ;;
absent) absent)