bugGNU troff - Bugs: bug #55449, Use FILENAME_MAX in maxfilename.cpp

 
 

bug #55449: Use FILENAME_MAX in maxfilename.cpp

Submitted by:  Eli Zaretskii <eliz>
Submitted on:  Fri 11 Jan 2019 07:41:05 PM UTC  
 
Category:  Core Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 12 Jan 2019 08:06:46 AM UTC, comment #1: 

A simple patch to fix this is in the attachment.

(file #45943)

Eli Zaretskii <eliz>
Fri 11 Jan 2019 07:41:05 PM UTC, original submission:  

For platforms which don't have the Posix pathconf, maxfilename.cpp should try harder, and look at (the ANSI-standard) FILENAME_MAX in addition to the other varieties.  Right now, it decides that NAME_MAX is 14 on MS-Windows, which of course makes no sense.  One adverse effect of this is that temporary file names don't get the "groff" prefix, for no good reason.

Eli Zaretskii <eliz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #45943:  max_name.patch added by eliz (362B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eliz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-12 eliz Attached File- => Added max_name.patch, #45943

    Back to the top


    Powered by Savane 3.5