Is crack used to mean the same thing in the next two sentences (see options)?

Open the door a crack.

There was a crack in the mirror.

Available options:
[1]. different meanings;
[2]. the same meaning;
[1].