Skip to content

zopen-config - find gives \n in filenames. #1115

@ccc13481

Description

@ccc13481

Description

Hi

I got some errors running zopen-config:
/u/frank/zopen/etc/zopen-config:.:105: eDC5129I No such file or directory.: /u/frank/zopen/etc/profiled/curl/dotenv\n/u/frank/zopen/etc/profiled/libpsl/dotenv\n/u/frank/zopen/etc/profiled/libssh2/dotenv\n/u/frank/zopen/etc/profiled/jq/dotenv\n/u/frank/zopen/etc/profiled/gpg/dotenv\n/u/frank/zopen/etc/profiled/pinentry/dotenv\n/u/frank/zopen/etc/profiled/meta/dotenv\n/u/frank/zopen/etc/profiled/wget/dotenv

IMHO the line 98 must be changed from
dotenvs=$(find "${ZOPEN_ROOTFS}/etc/profiled" -type f -name 'dotenv' -print)

to
dotenvs=$(find "${ZOPEN_ROOTFS}/etc/profiled" -type f -name 'dotenv' -print0)

Severity

Sev 4 - Low

Expected Behavior

dotenv file should be executed.

Actual Behavior

dotenv file is not executed.

z/OS Version

3.1

zopen package manager version

0.8.4

Additional Information (Optional)

No response

Network or Security Configuration (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev 4 - LowMinor issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions