Author: emaste
Date: Tue Feb 14 16:49:32 2017
New Revision: 313732
URL: https://svnweb.freebsd.org/changeset/base/313732

Log:
  bhyve: whitespace fix for r313727
  
  Reported by:  jhb

Modified:
  head/usr.sbin/bhyve/consport.c

Modified: head/usr.sbin/bhyve/consport.c
==============================================================================
--- head/usr.sbin/bhyve/consport.c      Tue Feb 14 16:33:42 2017        
(r313731)
+++ head/usr.sbin/bhyve/consport.c      Tue Feb 14 16:49:32 2017        
(r313732)
@@ -134,11 +134,14 @@ console_handler(struct vmctx *ctx, int v
 
        if (!opened) {
 #ifndef WITHOUT_CAPSICUM
-       cap_rights_init(&rights, CAP_EVENT, CAP_IOCTL, CAP_READ, CAP_WRITE);
-       if (cap_rights_limit(STDIN_FILENO, &rights) == -1 && errno != ENOSYS)
-               errx(EX_OSERR, "Unable to apply rights for sandbox");
-       if (cap_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1 && errno 
!= ENOSYS)
-               errx(EX_OSERR, "Unable to apply rights for sandbox");
+               cap_rights_init(&rights, CAP_EVENT, CAP_IOCTL, CAP_READ,
+                   CAP_WRITE);
+               if (cap_rights_limit(STDIN_FILENO, &rights) == -1 &&
+                   errno != ENOSYS)
+                       errx(EX_OSERR, "Unable to apply rights for sandbox");
+               if (cap_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1 &&
+                   errno != ENOSYS)
+                       errx(EX_OSERR, "Unable to apply rights for sandbox");
 #endif
                ttyopen();
                opened = 1;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to