fbsd-ignore-sigsys-20090123
authorMatt Benjamin <matt@linuxbox.com>
Thu, 22 Jan 2009 21:38:45 +0000 (21:38 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 Jan 2009 21:38:45 +0000 (21:38 +0000)
LICENSE IPL10
FIXES 123867

wrong but a step forward

src/kauth/user.c
src/sys/pioctl.c

index 7a188d7..8cdb6fb 100644 (file)
@@ -185,7 +185,7 @@ ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance, char *re
     }
 #endif
 
-#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_USR_LINUX20_ENV) && !defined(AFS_XBSD_ENV)
+#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_USR_LINUX20_ENV) && (!defined(AFS_XBSD_ENV) || defined(AFS_FBSD_ENV))
     /* handle smoothly the case where no AFS system calls exists (yet) */
     old = (int (*)())signal(SIGSYS, SIG_IGN);
 #endif
index 9260c06..1df62ad 100644 (file)
@@ -48,6 +48,11 @@ int
 lpioctl(char *path, int cmd, char *cmarg, int follow)
 {
     int errcode, rval;
+#if defined(AFS_FBSD_ENV)
+    /* As kauth/user.c says, handle smoothly the case where no AFS system call
+     *  exists (yet).  Why don't more platforms have trouble here?  Matt */
+    sig_t old = (int (*)())signal(SIGSYS, SIG_IGN);
+#endif
 
 #if defined(AFS_LINUX20_ENV)
     rval = proc_afs_syscall(AFSCALL_PIOCTL, (long)path, cmd, (long)cmarg,