Skip to content

/SAVE fails in Solaris 10 "Invalid argument" #1042

@zvainio

Description

@zvainio

For some reason Solaris 10 does not accept NULL as a parameter. I remembered that this was an issue while ago with GNU screen also

ERRORS
The realpath() function will fail if:

 EINVAL          Either the file_name or resolved_name  argument is a null pointer.

src/lib-config/write.c

/* expand all symlinks; else we may replace a symlink with a regular file */
dest_name = realpath(base_name, NULL);

It was fixed with this

char realbuf[PATH_MAX];
dest_name = realpath(base_name, realbuf);

After this I'm able to use /SAVE command again

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions