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:
@@ -151,7 +151,7 @@ main(int argc, char *argv[])
|
||||
|
||||
#ifdef __linux__
|
||||
uid_t current_user, seafile_user;
|
||||
if (!force && !check_user (seafile_dir, ¤t_user, &seafile_user)) {
|
||||
if (!export_path && !force && !check_user (seafile_dir, ¤t_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);
|
||||
|
Reference in New Issue
Block a user