pam_krb5/pam_krb5-2.2.0-2-noafsonarm.patch

17 lines
342 B
Diff

--- src/minikafs.c
+++ src/minikafs.c
@@ -178,7 +178,13 @@
static int
minikafs_syscall(long function, long arg1, long arg2, long arg3, long arg4)
{
+#ifdef __arm__
+ /* no afs_syscall */
+ errno = ENOSYS;
+ return -1;
+#else
return syscall(__NR_afs_syscall, function, arg1, arg2, arg3, arg4);
+#endif
}
/* Call into AFS, somehow. */