1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-10-20 23:14:39 +00:00

Skip check user when export file and fix build error (#659)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-06-18 15:29:33 +08:00
committed by GitHub
parent 96996b79e3
commit 84eb58f01c
2 changed files with 15 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ main(int argc, char *argv[])
#ifdef __linux__
uid_t current_user, seafile_user;
if (!force && !check_user (seafile_dir, &current_user, &seafile_user)) {
if (!export_path && !force && !check_user (seafile_dir, &current_user, &seafile_user)) {
seaf_message ("Current user (%u) is not the user for running "
"seafile server (%u). Unable to run fsck.\n",
current_user, seafile_user);