Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fix potential mount/umount issues on FreeBSD 13 #230

Closed
5u623l20 opened this issue May 16, 2021 · 1 comment
Closed

Fix potential mount/umount issues on FreeBSD 13 #230

5u623l20 opened this issue May 16, 2021 · 1 comment

Comments

@5u623l20
Copy link
Contributor

  • In case the CD-ROM is not mounted "glabel status | grep CONTEXT | awk '{print $3}'" will have a null string which will eventually assign the value "/dev/" to "dev_context" variable. In later occasions while existence of "dev_context" is checked it will always return true and no elif conditions will be executed. Add additional glabel check for BSD.
  • In case the CD-ROM is not mounted and used there is nothing to unmount and eventually trying to unmount will throw error. So add an additional check to see if "MOUNT_DIR" is used as any mount points or not.

Pull request submitted.

#229

@vholer vholer changed the title Fix some issues on FreeBSD 13 Fix potential mount/umount issues on FreeBSD 13 May 17, 2021
@vholer vholer added this to the v6.2.0 milestone May 17, 2021
@vholer
Copy link
Contributor

vholer commented May 17, 2021

Merged, thank you very much for improvements!

@vholer vholer closed this as completed May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants