#1011948 plocate: updatedb error with CIFS

Package:
plocate
Source:
plocate
Description:
much faster locate
Submitter:
rollopack
Date:
2022-06-04 14:39:05 UTC
Severity:
normal
#1011948#5
Date:
2022-05-27 14:04:46 UTC
From:
To:
Dear Maintainer,
        removing CIFS from the list from the PRUNEFS returns the "fdopendir:
Permission denied" at the end of the scan and the database is not updated.
Putting CIFS back into the list the update is successful and the plocate.db
file is updated.

#1011948#10
Date:
2022-05-27 14:35:27 UTC
From:
To:
strace output:

getdents64(27, 0x55b372dc1a10 /* 0 entries */, 1048576) = 0
close(27)                               = 0
close(7)                                = 0
close(49)                               = 0
newfstatat(50, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0
fcntl(50, F_GETFL)                      = 0x58000 (flags
O_RDONLY|O_LARGEFILE|O_NOATIME|O_DIRECTORY)
fcntl(50, F_SETFD, FD_CLOEXEC)          = 0
getdents64(50, 0x55b372dc1a10 /* 3 entries */, 1048576) = 88
write(1, "/mnt/server/gate svil/Acquedotto"..., 37/mnt/server/gate
svil/Acquedotto.zip
) = 37
getdents64(50, 0x55b372dc1a10 /* 0 entries */, 1048576) = 0
close(50)                               = 0
newfstatat(51, "", 0x7ffd0628d900, AT_EMPTY_PATH) = -1 EACCES (Permesso negato)
write(2, "fdopendir: Permission denied\n", 29fdopendir: Permission denied
) = 29
write(5,
"\321y\217\344\263\t\221\4/\354\300\223b\306!`\23@Q2K\340\273N\236\307\226F\3\251\325\223"...,
2846) = 2846
exit_group(1)                           = ?
+++ exited with 1 +++

#1011948#15
Date:
2022-05-27 14:45:48 UTC
From:
To:
So basically, there is a directory that we can open, but not stat
once open? That's a bit weird, but I guess the server can deny pretty much
anything it would like.

/* Steinar */

#1011948#20
Date:
2022-06-04 14:34:54 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
plocate, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011948@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steinar H. Gunderson <sesse@debian.org> (supplier of updated plocate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 04 Jun 2022 15:18:42 +0200
Source: plocate
Architecture: source
Version: 1.1.16-1
Distribution: unstable
Urgency: medium
Maintainer: Steinar H. Gunderson <sesse@debian.org>
Changed-By: Steinar H. Gunderson <sesse@debian.org>
Closes: 1011948
Changes:
 plocate (1.1.16-1) unstable; urgency=medium
 .
   * New upstream release.
     * Makes updatedb skip over directories that can be opened but not
       stat-ed. (Closes: #1011948)
Checksums-Sha1:
 fab5b75309f04effbefd39995421be6573806cc8 1872 plocate_1.1.16-1.dsc
 26d2b9edc0f39e9004fa581291a5516384b568b6 73397 plocate_1.1.16.orig.tar.gz
 33b013a17bf06008b46e79c46e82082769f5ebb0 6348 plocate_1.1.16-1.debian.tar.xz
 685cdbf8c60eab3a9547ed396525da9ac41d992c 7551 plocate_1.1.16-1_amd64.buildinfo
Checksums-Sha256:
 1d25df63020b71c0890710c49a85a409e3904c5f47db094184c4d7bf4cd730a0 1872 plocate_1.1.16-1.dsc
 4504df6f9df0e253466eab29c88ad37fc7bdff106f4872f96bc980e80b3a9631 73397 plocate_1.1.16.orig.tar.gz
 f3c37cd97ecb3717efb2ba86935a2ca3f5f8e1e443fbdbb812b460f5db86ff77 6348 plocate_1.1.16-1.debian.tar.xz
 e21f0dc246bca6efc6b3fdc440ebc1045a5bf27c1da40146c8485c0d2f9e433c 7551 plocate_1.1.16-1_amd64.buildinfo
Files:
 890b0c46a8d783eb2b3d3bb5eab7b02e 1872 utils optional plocate_1.1.16-1.dsc
 822d063381af4653d9e59b1bdc5cbc02 73397 utils optional plocate_1.1.16.orig.tar.gz
 ae144c928fa589561e3b08b0927c358d 6348 utils optional plocate_1.1.16-1.debian.tar.xz
 8349c4d8a173a67a077d1d8138026ba5 7551 utils optional plocate_1.1.16-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwukAT/AowY5OrduDf2F1YXeXj3YFAmKbYZcACgkQf2F1YXeX
j3aD8hAAtOEhYbNRgp7dJYxoK/upnTS+r8XwNFFQEGlwGoX5F72J34ultnvc3m8q
WMow60GsbJZQ9trOC0YWPW5rQxtamI2NLyRwbDp3daJl472zyd9AoZ0Xr5E5TSjm
LM8mw2yL3ySC731WK9xP/JyctLcE3ICkMkgdu6RLVPuCeAM+hSmYdSYUKAJ/maT6
T2zfnhLhyv6U6n+fenrdWWiiIflg/q+VuP3/ToPcLRyUe6y1wuVTGl1ol49P2e9Z
Eraa7qnlikJR4qxJDG/doZqC76E99IS6+meqso7Z4DwekINpdkRJxZiYJBhrO4fk
99nWHB+9aFhGPKRR08z5KC5ruITD1zJ55k3wdd2w6Vb+NqswIHaVZBzLSglEAKNq
UBf57SyGpt7uwDwFLbEWRCTMdeAcABTIQtB9tLjBSSB3LjTRVMVABDYirJftIuYK
bDar5tgKS9GaDXRhBo3CvKNqF45BhWK+ueA3F0vL1u7uKlbGD/5E7p4E+ZpXzB93
7riZvIuyX5x8rs1Ed0mnmoEYV9vlW6YdLtyXneCQE+EZqeV3F4Q3vN1/8UKh4Smm
Bf99mYrgupbu0hJICw2r9G6xfkCL8HnsqyYn1B2iSkzd7biMtZjTZ+6JaNDud1pL
TMrwteOIwykIod6AdkwhquVu9l9XHzqATymhjRTQrAUi2Ig93l4=
=PJES
-----END PGP SIGNATURE-----