From 4fd24a3dbc65950a129a54aa0f36ca916b250a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 18 Nov 2020 09:12:30 +0000 Subject: [PATCH 1/2] enh: install: freebsd: check whether acls are enabled --- bin/admin/install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/admin/install b/bin/admin/install index e9f7d38..408d407 100755 --- a/bin/admin/install +++ b/bin/admin/install @@ -191,6 +191,20 @@ EOF exit 1 fi +# if we're under FreeBSD, we must have ACLs enabled on /home (or whatever partition contains it), +# so check for that first + +if [ "$OS_FAMILY" = FreeBSD ]; then + action_doing "Running under FreeBSD, verifying if /home is mounted with ACLs..." + home_mp="$(df /home | awk '{ if(NR==2) {print $6;exit} }')" + if ! mount | awk '{ if($3=="'"$home_mp"'"){print;exit} }' | grep -q -w acls; then + action_error "No. Please modify your /etc/fstab accordingly, and run \`mount -u -o acls $home_mp' to apply the change on-the-fly." + exit 1 + else + action_done + fi +fi + if [ "${opt[wait]}" = 1 ]; then action_doing "Touching lockfile to suspend sync, and waiting 3 seconds to ensure it has been picked up..." # shellcheck disable=SC2064 From 632076565ea1559272d5fd0eb414457776ae87e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20SO=C3=8BTE?= Date: Tue, 17 Nov 2020 22:20:41 +0000 Subject: [PATCH 2/2] Fix sort of the list of past sessions --- bin/plugin/open/selfListSessions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin/open/selfListSessions b/bin/plugin/open/selfListSessions index 63345da..3c3fcef 100755 --- a/bin/plugin/open/selfListSessions +++ b/bin/plugin/open/selfListSessions @@ -107,7 +107,7 @@ else { my $list = $fnret->value; my @result; - foreach my $id (sort { $list->{$b} <=> $list->{$a} } keys %{$list}) { + foreach my $id (sort { $list->{$a}->{'id'} <=> $list->{$b}->{'id'} } keys %{$list}) { my $r = $list->{$id}; my $diff = ($r->{timestampend} + $r->{timestampendusec} / 1_000_000) - ($r->{timestamp} + $r->{timestampusec} / 1_000_000);