Petitioner was charged by information with unlawful possession of narcotics (Health & Saf. Code, § 11500) and with a prior conviction for the same offense. On February 19, 1962, represented by retained counsel, he withdrew a plea of not guilty and pleaded guilty to the charge. On May 3,1962, he again appeared with counsel and the court entered a judgment of conviction, found the prior conviction true, and sentenced him to prison. He did not appeal.
After an unexplained delay of 19 months, petitioner, confined at San Quentin, mailed a motion to withdraw the guilty plea to the trial court in Los Angeles. The court treated this motion as a petition for a writ of error coram nobis. Petitioner alleged that he was denied the effective aid of counsel in that counsel induced him to abandon a defense that incriminating evidence had been produced by an illegal search, and to enter a guilty plea, with the understanding that petitioner would be committed to the narcotics addict rehabilitation program. (Pen. Code, § 6451.) Petitioner requested that counsel be appointed at the coram nobis hearing. The trial court refused to appoint counsel to represent him, held a hearing at which his former lawyer testified, and denied the petition. Petitioner did not appeal.
On October 26, 1964, he filed this petition for a writ of habeas corpus alleging that the judge who convicted him failed to consider his suitability for the narcotics rehabilitation program, and that he was improperly denied counsel at the coram nobis hearing. We issued an order to show cause.
Petitioner’s contention that the judge who convicted him failed to exercise his discretion under section 6451 of the Penal Code could have been raised on direct appeal from
*236
the judgment of conviction. Whether or not habeas corpus will lie in such a situation, the record clearly demonstrates that the contention is without merit. The probation report set forth petitioner’s criminal record in some detail. At the probation hearing, the trial judge stated that he had read the report and determined that petitioner was not suitable for the program. (Cf.
People
v.
Wallace,
Petitioner’s contention that he was improperly denied counsel at the
coram nobis
hearing is governed by the rules set forth in
People
v.
Shipman, ante,
p. 226 [
The order to show cause is discharged, and the petition for a writ of habeas corpus is denied.
MeComb, J., Peters, J., Tobriner, J., Peek, J., Burke, J., and Schauer, J., * concurred.
Notes
Retired Associate Justice of the Supreme Court sitting under assignment by the Chairman of the Judicial Council.
