pFind bug

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

pFind bug

Post by MochiMoppel »

Observed in pFind 6.3 of BookwormPup64 10.0.8

pFind never finds any match when selecting
[X] Search only current filesystem (IMHO this should be the default!)
Permissions in the "Mode" category. e.g. the very typical Read access for all and Write access for user

When constructing the find command pFind fails to separate the -perm 644 and -xdev arguments with the mandatory whitespace, resulting in an invalid command construct (see statusbar).

I don't expect that this will be fixed. pFind is unmaintained for a long time and has quite a few unresolved problems. Just stating it here for the record.

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3146 times
Been thanked: 2933 times
Contact:

Re: pFind bug

Post by rockedge »

time to look at the code and see it is fixed for the future.

User avatar
wizard
Posts: 2169
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 2980 times
Been thanked: 799 times

Re: pFind bug

Post by wizard »

@MochiMoppel
@rockedge

Cannot confirm bug based on following test.

BookwormPup64 10.0.7 and 10.0.8.
Pfind 6.3
search for = smb
Where to search = System files
Search only current file system

Returns expected results.

Did I miss something?

Thanks
wizard

Big pile of OLD computers

User avatar
bigpup
Moderator
Posts: 7512
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1021 times
Been thanked: 1682 times

Re: pFind bug

Post by bigpup »

@MochiMoppel

you seem to have a good understanding of the code in this program.

If no one is maintaining it.

How about you taking it over and do the maintaining?

This is one of the must have programs in any Puppy Linux version.

sure would be good if it stayed working correctly.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
don570
Posts: 770
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 144 times

Contact Zigbert

Post by don570 »

Zigbert will solve the problem if he is asked.

I pointed out a problem with Dollar signs and other strange characters in folder names
and he solved it
Remember that the name of the program is pfind/pfilesearch when contacting Zigbert
https://forum.puppylinux.com/viewtopic.php?t=6672
________________________________________________________-

Screenshot 2024-10-09 12.44.25.png
Screenshot 2024-10-09 12.44.25.png (15.43 KiB) Viewed 1326 times
User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: pFind bug

Post by MochiMoppel »

wizard wrote: Wed Oct 09, 2024 1:22 pm

Returns expected results.
Did I miss something?

Permissions :mrgreen:

User avatar
peebee
Posts: 1717
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 165 times
Been thanked: 753 times
Contact:

Re: pFind bug

Post by peebee »

Please provide the fix and I will apply it to:
https://github.com/puppylinux-woof-CE/w ... ages/pfind

for future Woof-CE builds.

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: pFind bug

Post by MochiMoppel »

pFind will also fail when using these options:
☐ Search also subdirectories
☒ Search only current filesystem

This all points to an obvious cause.. and raises a suspicion that some options in pFind are never used 😧

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: pFind bug

Post by MochiMoppel »

@peebee Add the missing space to line 76 of
https://github.com/puppylinux-woof-CE/w ... earch/func

[ "$CHKXDEV" = "true" ] && XDEV=" -xdev" || XDEV=""

And just in case you are wondering: Yes, this bug exists since the very first version.
Found this in pfilesearch v.1.11 of 2008:
if [ $CHKXDEV = "true" ]; then XDEV="-xdev"; else XDEV=""; fi :shock:

@Dry Falls I doubt that this has anything to do with gtkdialog. Which other bugs did you experience?

User avatar
peebee
Posts: 1717
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 165 times
Been thanked: 753 times
Contact:

Re: pFind bug

Post by peebee »

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
fredx181
Posts: 3385
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 437 times
Been thanked: 1484 times
Contact:

Re: pFind bug

Post by fredx181 »

MochiMoppel wrote: Fri Oct 11, 2024 11:27 am

...
And just in case you are wondering: Yes, this bug exists since the very first version.
Found this in pfilesearch v.1.11 of 2008:
if [ $CHKXDEV = "true" ]; then XDEV="-xdev"; else XDEV=""; fi :shock:

Yes, you are very, very late discovering this bug ! :lol:

Works fine now with the space before -xdev XDEV=" -xdev", thanks :thumbup:

Post Reply

Return to “Bug Reports”