commit a4b287da4342e9803b466b4e309b1c49f130da1b
parent 6665a20d71f49b2327faddd11ff0440524a61a37
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 23 Jun 2022 00:22:24 +0200
UID and GID are decimal, not octal
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zsh-functions/confz_fileset_init b/zsh-functions/confz_fileset_init
@@ -228,10 +228,10 @@ confz_fs_o_check() {
fileset_stat $vars[filename] || \
die "fs_o: could not access file ${(qqq)vars[filename]}"
- if [[ $vars[owner] =~ '^[0-7]+:[0-7]+$' ]]; then
+ if [[ $vars[owner] =~ '^[0-9]+:[0-9]+$' ]]; then
(( $fileset_stat_cur[uid] == ${${vars[owner]}%:*} && \
$fileset_stat_cur[gid] == ${${vars[owner]}#*:} ))
- elif [[ $vars[owner] =~ '^[0-7]+$' ]]; then
+ elif [[ $vars[owner] =~ '^[0-9]+$' ]]; then
(( $fileset_stat_cur[uid] == ${${vars[owner]}%:*} ))
else
die "fs_o does not support non-numeric user/group: ${(qqq)vars[owner]}"