PERFORCE change 188690 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Feb 10 17:21:50 UTC 2011


http://p4web.freebsd.org/@@188690?ac=10

Change 188690 by trasz at trasz_victim on 2011/02/10 17:21:46

	Fix indent.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/lib/libutil/login_class.c#9 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/lib/libutil/login_class.c#9 (text+ko) ====

@@ -514,8 +514,8 @@
 	return (-1);
     }
 
+    /* Inform the kernel about current login class */
     if (lc != NULL && lc->lc_class != NULL && (flags & LOGIN_SETLOGINCLASS)) {
-    /* Inform the kernel about current login class */
 	/*
 	 * XXX: This is a workaround to fail gracefully in case the kernel
 	 *      does not support setloginclass(2).
@@ -526,13 +526,13 @@
 	sigaction(SIGSYS, &sa, &prevsa);
 	error = setloginclass(lc->lc_class);
 	sigaction(SIGSYS, &prevsa, NULL);
-        if (error != 0) {
+	if (error != 0) {
 	    syslog(LOG_ERR, "setloginclass(%s): %m", lc->lc_class);
 #ifdef notyet
 	    login_close(llc);
 	    return (-1);
 #endif
-        }
+	}
     }
 
     mymask = (flags & LOGIN_SETUMASK) ? umask(LOGIN_DEFUMASK) : 0;


More information about the p4-projects mailing list