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HNjc2lfbHUt
PmNtZF9wZXJmb3JtKCkgdGhhdCB3aWxsIGVpdGhlciBiZSBzZXR1cCBmb3INCgkgKiBpbnRlcm5h
bCBvciBwYXNzdGhyb3VnaCBDREIgcHJvY2Vzc2luZyB1c2luZyAyIGZ1bmN0aW9ucyBiZWxvdy4N
CgkgKi8NCglyZXR1cm4gY21kLT5kZXYtPmNtZF9wZXJmb3JtKHRpZCwgY21kKTsgfQ0KDQpUaGlz
IGlzIGFkZHJlc3NlZCBieSB0aGUgcGF0Y2ggQm9heiBpcyBjYXJyeWluZyBpbiBoaXMgdHJlZS4N
Cg0KSFRILA0KQXJuZQ0K
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list