Skip to content

Commit

Permalink
avoid /boot ... if people use a sd card from a camera
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed May 27, 2024
1 parent c6e4f3e commit 706c7d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libgphoto2_port/disk/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ gp_port_library_list (GPPortInfoList *list)
(NULL != strstr(mntent->mnt_type,"sysfs"))||
(NULL != strstr(mntent->mnt_type,"cifs"))||
(NULL != strstr(mntent->mnt_type,"afs")) ||
/* avoid some dirs */
(0 == strncmp(mntent->mnt_dir,"/boot",5)) ||
/* mount options */
/* x-systemd.automount or similar */
(NULL != strstr(mntent->mnt_opts,"automount"))
Expand Down Expand Up @@ -182,6 +184,8 @@ gp_port_library_list (GPPortInfoList *list)
(NULL != strstr(mntent->mnt_type,"sysfs"))||
(NULL != strstr(mntent->mnt_type,"cifs"))||
(NULL != strstr(mntent->mnt_type,"afs")) ||
/* avoid some dirs */
(0 == strncmp(mntent->mnt_dir,"/boot",5)) ||
/* options */
(NULL != strstr(mntent->mnt_opts,"automount"))
) {
Expand Down

0 comments on commit 706c7d3

Please sign in to comment.