src/solaris/native/sun/misc/VM_md.c

Print this page

        

*** 21,40 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ - /* - * Solaris/Linux specific code to support logging. - */ - #include <unistd.h> #include "jni_util.h" JNIEXPORT jboolean JNICALL ! Java_java_util_logging_FileHandler_isSetUID(JNIEnv *env, jclass thisclass) { /* Return true if we are in a set UID or set GID process. */ if (getuid() != geteuid() || getgid() != getegid()) { return JNI_TRUE; } --- 21,36 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ #include <unistd.h> #include "jni_util.h" JNIEXPORT jboolean JNICALL ! Java_sun_misc_VM_isSetUID(JNIEnv *env, jclass thisclass) { /* Return true if we are in a set UID or set GID process. */ if (getuid() != geteuid() || getgid() != getegid()) { return JNI_TRUE; }