Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2011 17:21:49 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 188690 for review
Message-ID:  <201102101721.p1AHLnWQ004198@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help

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

Change 188690 by trasz@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102101721.p1AHLnWQ004198>