From 346ff9c8b83dc516dbd6b6819fdf9335adfd4dd2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 4 Sep 2022 13:06:14 +0200 Subject: report only fstype, not fsname ... otherwise might like pths or UUIDs in logfiles --- libgphoto2_port/disk/disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgphoto2_port') diff --git a/libgphoto2_port/disk/disk.c b/libgphoto2_port/disk/disk.c index a74e79702..832f9bcca 100644 --- a/libgphoto2_port/disk/disk.c +++ b/libgphoto2_port/disk/disk.c @@ -81,7 +81,7 @@ gp_port_library_list (GPPortInfoList *list) if (mnt) { while ((mntent = getmntent (mnt))) { /* detect floppies so we don't access them with the stat() below */ - GP_LOG_D ("found fstab fsname %s", mntent->mnt_fsname); + GP_LOG_D ("found fstab fstype %s", mntent->mnt_type); if ((NULL != strstr(mntent->mnt_fsname,"fd")) || (NULL != strstr(mntent->mnt_fsname,"floppy")) || @@ -153,7 +153,7 @@ gp_port_library_list (GPPortInfoList *list) if (mnt) { while ((mntent = getmntent (mnt))) { /* detect floppies so we don't access them with the stat() below */ - GP_LOG_D ("found mtab fsname %s", mntent->mnt_fsname); + GP_LOG_D ("found mtab fstype %s", mntent->mnt_type); if ((NULL != strstr(mntent->mnt_fsname,"fd")) || (NULL != strstr(mntent->mnt_fsname,"floppy")) || -- cgit v1.2.1