pFind bug

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

Moderator: Forum moderators

Post Reply
User avatar
MochiMoppel
Posts: 1209
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 20 times
Been thanked: 429 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: 6433
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2643 times
Been thanked: 2569 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: 1893
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2561 times
Been thanked: 625 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: 6880
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 884 times
Been thanked: 1491 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

don570
Posts: 657
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 111 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 441 times
User avatar
MochiMoppel
Posts: 1209
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 20 times
Been thanked: 429 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: 1615
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 702 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: 1209
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 20 times
Been thanked: 429 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 😧

Dry Falls
Posts: 78
Joined: Thu Jul 29, 2021 7:40 pm
Has thanked: 23 times
Been thanked: 41 times

Re: pFind bug

Post by Dry Falls »

Using pfind-6.2-2-x86_64 in lighthouse (slackware64-15.0 and current), all of the bugs I experienced (the above and more) disappeared when I rolled back gtkdialog from gtkdialog-0.8.5 to gtkdialog-0.8.3 which I just compiled from slackbuilds. As well, gtkdialog-0.8.3-x86_64-1_SBo no longer requires mesa (opengl and vulkan-sdk) and llvm libraries to be present to avoid crashing. (These are humongous libraries ).

This might help.
df

User avatar
MochiMoppel
Posts: 1209
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 20 times
Been thanked: 429 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: 1615
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 702 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: 2934
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 346 times
Been thanked: 1242 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”