[Goodies-dev] [Bug 15375] [PATCH] Extend device path to 128 characters

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat May 25 13:50:41 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15375

Anonymous <bugmenot at binkmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |FIXED

--- Comment #4 from Anonymous <bugmenot at binkmail.com> ---
128 characters is no upper limit but just some arbitrary value I choose by
doubling the existing limit. It worked for my use case and the increase was
small enough as to probably not cause any issues.
Using the "max lenght of a directory entry" will be quiet hard because, at
least from my understanding, it heavily depends on the os and filesystem used.
There are constants like PATH_MAX defined by POSIX, but it is discouraged to
use them for memory allocation as their value can be undefined, arbitrarily
high or even infinite.
I do agree that it would be a good idea to reduce the number of constant values
in favour of sizeof() or a self-defined constant. My lack of experience in
hacking xfce (as well as c and gtk in general) however prevented me from
confidently making such a change. So I was happy enough to get the desired
result with changing a few numbers here and there.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Goodies-dev mailing list