PERFORCE change 37025 for review
Chris Vance
cvance at FreeBSD.org
Wed Aug 27 16:10:22 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=37025
Change 37025 by cvance at cvance_release on 2003/08/27 09:10:17
Fix bug where an extra ',' character was being included at the
beginning of externalized MAC labels.
Affected files ...
.. //depot/projects/trustedbsd/sebsd/sys/kern/kern_mac.c#7 edit
Differences ...
==== //depot/projects/trustedbsd/sebsd/sys/kern/kern_mac.c#7 (text+ko) ====
@@ -427,9 +427,9 @@
} else \
ignorenotfound = 0; \
savedlen = sbuf_len(&sb); \
- if (first) { \
+ if (first == 1) { \
error = sbuf_printf(&sb, "%s/", element_name); \
- first = 0; \
+ first--; \
} else \
error = sbuf_printf(&sb, ",%s/", element_name); \
if (error == -1) { \
@@ -444,6 +444,7 @@
if (claimed == 0 && ignorenotfound) { \
/* Revert last label name. */ \
sbuf_setpos(&sb, savedlen); \
+ first++; \
} else if (claimed != 1) { \
error = EINVAL; /* XXX: ENOLABEL? */ \
break; \
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list