A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gitlab.com/OldManProgrammer/unix-tree/-/merge_requests/2 below:

Bug fix: type of flimit (!2) · Merge requests · Old Man Programmer

Skip to content Issue

If the number of files in the target directory is more than or equal to the number specified by filelimit option, a segmentation fault occurs. This symptom occurs only when the user has no permission to the target directory.

Cause

It is the comparison between int type and bool type. The evaluation result of the variables and conditional expressions are shown below. Even if n is -1 and flimit is 23, n > flimit evaluates to true.

How to fix

Until v1.5.3 or earlier, the type of flimit is int. However, v1.6.0 or later, the type of flimit is bool. flimit should be int type variable since it has number of entries.

Could you consider to merge the fix? Thank you.

Edited Apr 20, 2022 by Kenta Arai

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4