Landing: 38898f9bdae4

Project / Subsystem

gcc / cobol

Date

2026-09-17

Author

Xavier Del Campo Romero

Commit

38898f9bdae4dc7db4db537a503c995b06a3f16b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
38898f9bdae4dc7db4db537a503c995b06a3f16b
source_type
github
headline
Revert cobol file creation and parameter validation changes
tldr
Reverts a change that incorrectly added a trailing null to filenames and relied on incorrect filename length validation.
author
Xavier Del Campo Romero
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • revert
  • • filename
discussion_id_link
—
bugzilla_pr
—
date
2026-09-17T00:00:00.000Z

This commit reverts a previous change to cobol’s CBL_CREATE_FILE function. The revert corrects an issue where filenames were being created with an unintended trailing null character (e.g., ‘myfile.txt0’). It also removes filename length validation that incorrectly relied on hardcoded values, as the kernel already handles this by returning ENAMETOOLONG.