The real-life equivalent of the James Robertson Justice character was actually in Army Intelligence, not Naval Intelligence, as in this film. The change was made because Justice refused to shave off his trademark beard, and army officers were not allowed them.