PERFORCE change 44587 for review

Chris Vance cvance at FreeBSD.org
Wed Dec 31 05:54:21 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=44587

Change 44587 by cvance at cvance_sony on 2003/12/31 05:53:40

	It's possible that the user default_contexts file isn't readable,
	(EPERM, no ENOENT).  This isn't a critical failure.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/lib/libsebsd/get_ordered_context_list.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/lib/libsebsd/get_ordered_context_list.c#3 (text+ko) ====

@@ -246,12 +246,12 @@
 		error = move_matching_contexts(path, user, my_context,
 		    context_list, kernel_context_list, ncontexts);
 		free(path);
-		if (error == -1 && errno != ENOENT)
+		if (error == -1 && errno == EINVAL)
 			goto out;
 	}
 	error = move_matching_contexts(_DEFCONTEXT_PATH, user, my_context,
 	    context_list, kernel_context_list, ncontexts);
-	if (error == -1 && errno != ENOENT)
+	if (error == -1 && errno == EINVAL)
 		goto out;
 	error = 0;
 	/*


More information about the p4-projects mailing list