Skip to content

Commit 2d3af82

Browse files
committed
sysdeps/managarm: Make sys_name_to_handle_at return EOPNOTSUPP
1 parent d28ffce commit 2d3af82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sysdeps/managarm/generic/file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3162,8 +3162,8 @@ int sys_lgetxattr(const char *, const char *, void *, size_t, ssize_t *) { retur
31623162

31633163
int sys_setxattr(const char *, const char *, const void *, size_t, int) { return ENOSYS; }
31643164

3165-
// We don't implement name_to_handle_at
3166-
int sys_name_to_handle_at(int, const char *, struct file_handle *, int *, int) { return ENOSYS; }
3165+
// We don't implement name_to_handle_at, EOPNOTSUPP will cause systemd to fall through to backup options
3166+
int sys_name_to_handle_at(int, const char *, struct file_handle *, int *, int) { return EOPNOTSUPP; }
31673167

31683168
int sys_setgroups(size_t size, const gid_t *list) {
31693169
SignalGuard sguard;

0 commit comments

Comments
 (0)