filter out x-systemd.automount

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15116 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2014-07-27 20:26:36 +00:00
parent b7b57e79e2
commit 39a50823bc

View File

@@ -130,7 +130,10 @@ gp_port_library_list (GPPortInfoList *list)
(NULL != strstr(mntent->mnt_type,"sysfs"))||
(NULL != strstr(mntent->mnt_type,"fuse"))||
(NULL != strstr(mntent->mnt_type,"cifs"))||
(NULL != strstr(mntent->mnt_type,"afs"))
(NULL != strstr(mntent->mnt_type,"afs")) ||
/* mount options */
/* x-systemd.automount or similar */
(NULL != strstr(mntent->mnt_opts,"automount"))
)
) {
continue;
@@ -191,7 +194,9 @@ gp_port_library_list (GPPortInfoList *list)
(NULL != strstr(mntent->mnt_type,"sysfs"))||
(NULL != strstr(mntent->mnt_type,"fuse"))||
(NULL != strstr(mntent->mnt_type,"cifs"))||
(NULL != strstr(mntent->mnt_type,"afs"))
(NULL != strstr(mntent->mnt_type,"afs")) ||
/* options */
(NULL != strstr(mntent->mnt_opts,"automount"))
) {
continue;
}