In the movie the sailors saluted the petty officer who is a NCO. Only commissioned and warrant officers are saluted. The only exception would be an enlisted Metal of Honor recipient who would be saluted like an officer. Not a goof. Recruits in Navy boot camp must salute everyone except fellow recruits.